Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Commit b59b8a0

Browse files
committed
Putting modernizer in it's right place
1 parent c80655f commit b59b8a0

6 files changed

Lines changed: 135 additions & 125 deletions

File tree

todaycharts/bornabroad/index.html

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -662,27 +662,7 @@
662662
}// end drawGraphic
663663

664664

665-
//then, onload, check to see if the web browser can handle 'inline svg'
666-
if (Modernizr)
667-
{
668-
669-
// open and load configuration file.
670-
d3.json("config.json", function(error, json)
671-
{
672-
// strore read in json data from config file as as global dvc. variable ...
673-
dvc = json;
674-
readData();
675-
})
676-
677-
} // end if ...
678-
else
679-
{
680-
//use pym to create iframe containing fallback image (which is set as default)
681-
pymChild = new pym.Child();
682-
if (pymChild) {
683-
pymChild.sendHeight();
684-
}
685-
}
665+
686666

687667

688668

@@ -733,7 +713,27 @@
733713
})
734714

735715
}// end function readData()
736-
716+
//then, onload, check to see if the web browser can handle 'inline svg'
717+
if (Modernizr)
718+
{
719+
720+
// open and load configuration file.
721+
d3.json("config.json", function(error, json)
722+
{
723+
// strore read in json data from config file as as global dvc. variable ...
724+
dvc = json;
725+
readData();
726+
})
727+
728+
} // end if ...
729+
else
730+
{
731+
//use pym to create iframe containing fallback image (which is set as default)
732+
pymChild = new pym.Child();
733+
if (pymChild) {
734+
pymChild.sendHeight();
735+
}
736+
}
737737
</script>
738738
</body>
739739
</html>

todaycharts/bornoutmarriage/index.html

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -653,27 +653,7 @@
653653
}// end drawGraphic
654654

655655

656-
//then, onload, check to see if the web browser can handle 'inline svg'
657-
if (Modernizr)
658-
{
659-
660-
// open and load configuration file.
661-
d3.json("config.json", function(error, json)
662-
{
663-
// strore read in json data from config file as as global dvc. variable ...
664-
dvc = json;
665-
readData();
666-
})
667-
668-
} // end if ...
669-
else
670-
{
671-
//use pym to create iframe containing fallback image (which is set as default)
672-
pymChild = new pym.Child();
673-
if (pymChild) {
674-
pymChild.sendHeight();
675-
}
676-
}
656+
677657

678658

679659

@@ -725,6 +705,28 @@
725705

726706
}// end function readData()
727707

708+
//then, onload, check to see if the web browser can handle 'inline svg'
709+
if (Modernizr)
710+
{
711+
712+
// open and load configuration file.
713+
d3.json("config.json", function(error, json)
714+
{
715+
// strore read in json data from config file as as global dvc. variable ...
716+
dvc = json;
717+
readData();
718+
})
719+
720+
} // end if ...
721+
else
722+
{
723+
//use pym to create iframe containing fallback image (which is set as default)
724+
pymChild = new pym.Child();
725+
if (pymChild) {
726+
pymChild.sendHeight();
727+
}
728+
}
729+
728730
</script>
729731
</body>
730732
</html>

todaycharts/firstborn/index.html

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -658,27 +658,7 @@
658658

659659

660660

661-
//then, onload, check to see if the web browser can handle 'inline svg'
662-
if (Modernizr)
663-
{
664-
665-
// open and load configuration file.
666-
d3.json("config.json", function(error, json)
667-
{
668-
// strore read in json data from config file as as global dvc. variable ...
669-
dvc = json;
670-
readData();
671-
})
672-
673-
} // end if ...
674-
else
675-
{
676-
//use pym to create iframe containing fallback image (which is set as default)
677-
pymChild = new pym.Child();
678-
if (pymChild) {
679-
pymChild.sendHeight();
680-
}
681-
}
661+
682662

683663

684664

@@ -730,6 +710,28 @@
730710

731711
}// end function readData()
732712

713+
//then, onload, check to see if the web browser can handle 'inline svg'
714+
if (Modernizr)
715+
{
716+
717+
// open and load configuration file.
718+
d3.json("config.json", function(error, json)
719+
{
720+
// strore read in json data from config file as as global dvc. variable ...
721+
dvc = json;
722+
readData();
723+
})
724+
725+
} // end if ...
726+
else
727+
{
728+
//use pym to create iframe containing fallback image (which is set as default)
729+
pymChild = new pym.Child();
730+
if (pymChild) {
731+
pymChild.sendHeight();
732+
}
733+
}
734+
733735
</script>
734736
</body>
735737
</html>

todaycharts/lifeexp/index.html

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -717,26 +717,7 @@
717717

718718

719719
//then, onload, check to see if the web browser can handle 'inline svg'
720-
if (Modernizr)
721-
{
722-
723-
// open and load configuration file.
724-
d3.json("config.json", function(error, json)
725-
{
726-
// strore read in json data from config file as as global dvc. variable ...
727-
dvc = json;
728-
readData();
729-
})
730-
731-
} // end if ...
732-
else
733-
{
734-
//use pym to create iframe containing fallback image (which is set as default)
735-
pymChild = new pym.Child();
736-
if (pymChild) {
737-
pymChild.sendHeight();
738-
}
739-
}
720+
740721

741722

742723

@@ -788,6 +769,27 @@
788769

789770
}// end function readData()
790771

772+
if (Modernizr)
773+
{
774+
775+
// open and load configuration file.
776+
d3.json("config.json", function(error, json)
777+
{
778+
// strore read in json data from config file as as global dvc. variable ...
779+
dvc = json;
780+
readData();
781+
})
782+
783+
} // end if ...
784+
else
785+
{
786+
//use pym to create iframe containing fallback image (which is set as default)
787+
pymChild = new pym.Child();
788+
if (pymChild) {
789+
pymChild.sendHeight();
790+
}
791+
}
792+
791793
</script>
792794
</body>
793795
</html>

todaycharts/marriage/index.html

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -726,27 +726,7 @@
726726
}// end drawGraphic
727727

728728

729-
//then, onload, check to see if the web browser can handle 'inline svg'
730-
if (Modernizr)
731-
{
732-
733-
// open and load configuration file.
734-
d3.json("config.json", function(error, json)
735-
{
736-
// strore read in json data from config file as as global dvc. variable ...
737-
dvc = json;
738-
readData();
739-
})
740-
741-
} // end if ...
742-
else
743-
{
744-
//use pym to create iframe containing fallback image (which is set as default)
745-
pymChild = new pym.Child();
746-
if (pymChild) {
747-
pymChild.sendHeight();
748-
}
749-
}
729+
750730

751731

752732

@@ -798,6 +778,28 @@
798778

799779
}// end function readData()
800780

781+
//then, onload, check to see if the web browser can handle 'inline svg'
782+
if (Modernizr)
783+
{
784+
785+
// open and load configuration file.
786+
d3.json("config.json", function(error, json)
787+
{
788+
// strore read in json data from config file as as global dvc. variable ...
789+
dvc = json;
790+
readData();
791+
})
792+
793+
} // end if ...
794+
else
795+
{
796+
//use pym to create iframe containing fallback image (which is set as default)
797+
pymChild = new pym.Child();
798+
if (pymChild) {
799+
pymChild.sendHeight();
800+
}
801+
}
802+
801803
</script>
802804
</body>
803805
</html>

todaycharts/ukhpi/index.html

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -666,27 +666,7 @@
666666
}// end drawGraphic
667667

668668

669-
//then, onload, check to see if the web browser can handle 'inline svg'
670-
if (Modernizr)
671-
{
672-
673-
// open and load configuration file.
674-
d3.json("config.json", function(error, json)
675-
{
676-
// strore read in json data from config file as as global dvc. variable ...
677-
dvc = json;
678-
readData();
679-
})
680669

681-
} // end if ...
682-
else
683-
{
684-
//use pym to create iframe containing fallback image (which is set as default)
685-
pymChild = new pym.Child();
686-
if (pymChild) {
687-
pymChild.sendHeight();
688-
}
689-
}
690670

691671

692672

@@ -738,6 +718,28 @@
738718

739719
}// end function readData()
740720

721+
//then, onload, check to see if the web browser can handle 'inline svg'
722+
if (Modernizr)
723+
{
724+
725+
// open and load configuration file.
726+
d3.json("config.json", function(error, json)
727+
{
728+
// strore read in json data from config file as as global dvc. variable ...
729+
dvc = json;
730+
readData();
731+
})
732+
733+
} // end if ...
734+
else
735+
{
736+
//use pym to create iframe containing fallback image (which is set as default)
737+
pymChild = new pym.Child();
738+
if (pymChild) {
739+
pymChild.sendHeight();
740+
}
741+
}
742+
741743
</script>
742744
</body>
743745
</html>

0 commit comments

Comments
 (0)