issue links to anchors merged

This commit is contained in:
zi 2011-06-28 00:50:51 +05:30
commit c450d83b29

View File

@ -1,4 +1,8 @@
// var R;
function supportsSvg() {
return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape", "1.0")
}
function getNode(nodeKey) {
var ret = false;
@ -14,6 +18,10 @@ function getNode(nodeKey) {
}
$(function() {
if (!supportsSvg) {
$('body').text("Sorry, your browser does not support Scalable Vector Graphics (SVG), which were used to make this page. Please use Firefox 4.0+ or Google Chrome if you wish to see this page. Thanks! Sorry for the trouble...");
return;
}
$(window).resize(function() {
var svgAspect = 1220 / 560;
var windowWidth = $(window).width();
@ -62,7 +70,7 @@ $(function() {
var nodes = LINES[id];
// console.log(nodes);
for (var i=0; i<nodes.length; i++) {
console.log(nodes[i]);
// console.log(nodes[i]);
var $node = getNode(nodes[i]);
$node.highlightNode();
}
@ -82,7 +90,7 @@ $(function() {
var nodes = LINES[id];
// console.log(nodes);
for (var i=0; i<nodes.length; i++) {
console.log(nodes[i]);
// console.log(nodes[i]);
var $node = getNode(nodes[i]);
$node.unhighlightNode();
}