{"id":4239,"date":"2020-04-28T21:06:18","date_gmt":"2020-04-29T01:06:18","guid":{"rendered":"https:\/\/sgm.qc.ca\/?page_id=4239"},"modified":"2020-04-28T21:06:18","modified_gmt":"2020-04-29T01:06:18","slug":"genealogy","status":"publish","type":"page","link":"https:\/\/sgm.qc.ca\/en\/genealogy\/","title":{"rendered":"Genealogy"},"content":{"rendered":"<p><center><script type='text\/javascript'>jQuery(document).ready(function(){var viewer=OpenSeadragon({id: 'deepzoomContainer0',prefixUrl:'https:\/\/sgm.qc.ca\/wp-content\/plugins\/zoom-openseadragon\/images\/',collectionRows:false,collectionColumns:3,showNavigationControl:true,showZoomControl:true,showHomeControl:true,showFullPageControl:true,showRotationControl:true,showSequenceControl:true,sequenceMode:false,showReferenceStrip:false,showNavigator:true,navigatorId:\"\",navigatorPosition:'TOP_RIGHT',referenceStripSizeRatio:0.2,referenceStripScroll:'horizontal',referenceStripPosition:'BOTTOM_LEFT',tileSources: [{title: '', type: 'legacy-image-pyramid',\n                levels:[{url: 'https:\/\/sgm.qc.ca\/wp-content\/uploads\/2020\/03\/genealogique-full-300x300.jpg',width: 300,height:300},{url: 'https:\/\/sgm.qc.ca\/wp-content\/uploads\/2020\/03\/genealogique-full-250x404.jpg',width: 186,height:300},{url: 'https:\/\/sgm.qc.ca\/wp-content\/uploads\/2020\/03\/genealogique-full-768x1242.jpg',width: 768,height:1242},{url: 'https:\/\/sgm.qc.ca\/wp-content\/uploads\/2020\/03\/genealogique-full-700x1132.jpg',width: 633,height:1024}]},{title:'test',tileSource:'\/wp-content\/uploads\/zoom\/genealogique-full.dzi'}]});\n\tviewer.curItem=viewer.initialPage;\n\tviewer.curZoom=viewer.initialPage;\n\t\n\tviewer.goTo = function(index) {  \/\/ zoom on specific resource from those on screen             \n\t     this.curItem=index;    \n\t     if (this.sequenceMode) this.goToPage(this.curItem);\n\t     else this.viewport.fitBounds(this.world.getItemAt(this.curItem).getBounds());\n\t     this.curZoom=this.curItem;  \n       \n\t}\n\tviewer.hitTest = function(position) { \/\/ return resource under cursor\n\t    var box;\n\t    var count = this.world.getItemCount();\n\t    for (var i = 0; i < count; i++) {\n\t        box = this.world.getItemAt(i).getBounds();\n\t        if (position.x > box.x && \n\t                position.y > box.y && \n\t                position.x < box.x + box.width &&\n\t                position.y < box.y + box.height) {\n\t            return i;\n\t        }\n\t    }\n\t\n\t    return -1;\n\t}\n\tviewer.showMeta = function (i) \n\t       {                        \n\t       if (i!=-1) {\n\t           var title=this.tileSources[i].title;\n\t           if (title!='') jQuery('#deepzoomCaption0').html(title);\t          \n\t          }\n\t      \n\t       }\n\tviewer.addHandler('page', function (data) {\n\t   viewer.showMeta(data.page);\n\t  \n\t});\n\tviewer.addHandler('canvas-click', function(event) {\n\t    if (viewer.sequenceMode==true) return;\n\t                       \n\t    var index = viewer.hitTest(viewer.viewport.pointFromPixel(event.position));   \n\t    if ((index !== -1)&&(index!=viewer.curZoom)) {\n\t        event.preventDefaultAction = true;\n\t        viewer.goTo(index); \n\t        viewer.showMeta(index);                         \n\t    }\n\t\n\t});\n\t\n    \n        if (viewer.sequenceMode==true) viewer.showMeta(viewer.initialPage);\n   \n\t\n\t\n\t});<\/script><figure  style='width: 700px' class='wp-caption alignnone'><div class='deepzoomContainer' id='deepzoomContainer0' style='width: 700px; height: 1132px;'><\/div><figcaption id='deepzoomCaption0' class='wp-caption-text'><\/figcaption><\/figure><\/p>\n<p><\/center><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":7,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"class_list":["post-4239","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/sgm.qc.ca\/en\/wp-json\/wp\/v2\/pages\/4239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sgm.qc.ca\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sgm.qc.ca\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sgm.qc.ca\/en\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/sgm.qc.ca\/en\/wp-json\/wp\/v2\/comments?post=4239"}],"version-history":[{"count":1,"href":"https:\/\/sgm.qc.ca\/en\/wp-json\/wp\/v2\/pages\/4239\/revisions"}],"predecessor-version":[{"id":4240,"href":"https:\/\/sgm.qc.ca\/en\/wp-json\/wp\/v2\/pages\/4239\/revisions\/4240"}],"wp:attachment":[{"href":"https:\/\/sgm.qc.ca\/en\/wp-json\/wp\/v2\/media?parent=4239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}