Changeset 35103


Ignore:
Timestamp:
2021-04-23T11:04:29+12:00 (3 years ago)
Author:
davidb
Message:

Relocation of eurovision.css and eurovision.js in the XSL files; also ids added to sgvizler.xsl so possible to share URLs that take you to a particular viz

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/js/dataviz.js

    r35095 r35103  
    178178   
    179179    if (auto_focus == ssv_auto_focus) {
    180     var url = window.location.href;
    181     window.location.href = url + "#sgvizler-plot";
    182     history.replaceState(null,null,url);
     180    console.log("auto focusing on #sgvizler-plot");
     181    var orig_url = window.location.href;
     182    var url_without_hash = orig_url.replace(/#.*$/,"");
     183    window.location.href = url_without_hash + "#sgvizler-plot";
     184    //history.pushState(null,null,orig_url);
     185    //history.replaceState(null,null,orig_url);
    183186    }
    184187}
Note: See TracChangeset for help on using the changeset viewer.