Show More
@@ -852,18 +852,24 b' class JSON(DisplayObject):' | |||
|
852 | 852 | def _repr_json_(self): |
|
853 | 853 | return self._data_and_metadata() |
|
854 | 854 | |
|
855 | _css_t = """$("head").append($("<link/>").attr({ | |
|
856 |
|
|
|
857 |
|
|
|
858 |
|
|
|
859 | })); | |
|
855 | _css_t = """var link = document.createElement("link"); | |
|
856 | link.ref = "stylesheet"; | |
|
857 | link.type = "text/css"; | |
|
858 | link.href = "%s"; | |
|
859 | document.head.appendChild(link); | |
|
860 | 860 | """ |
|
861 | 861 | |
|
862 | _lib_t1 = """$.getScript("%s", function () { | |
|
863 | """ | |
|
864 | _lib_t2 = """}); | |
|
862 | _lib_t1 = """var script = document.createElement("script"); | |
|
863 | script.type = "text/javascript"; | |
|
864 | script.src = "%s"; | |
|
865 | script.onload = script.onreadystatechange = function() { | |
|
866 | if (!this.readyState || this.readyState == 'complete') { | |
|
865 | 867 | """ |
|
866 | 868 | |
|
869 | _lib_t2 = """} | |
|
870 | }; | |
|
871 | document.head.appendChild(script);""" | |
|
872 | ||
|
867 | 873 | class GeoJSON(JSON): |
|
868 | 874 | """GeoJSON expects JSON-able dict |
|
869 | 875 |
General Comments 0
You need to be logged in to leave comments.
Login now