Last active
December 17, 2015 20:38
-
-
Save j100002ben/5668840 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var _jf = _jf || []; | |
| _jf.push(['_setAppId', 'e2510f16VwT5XHbraM7MKTaHR3qT2MdKu1jBGGtTppUF0K0R_uDa3ktbQ7mcNDOyCPJtSCY4MOtOxSWjB4pAJ8rT6ca9tUuIPML9PaiaaJPtH96PgsgSdZc8UlOyysfDDv8VwTLKRnzuQjDTRAKZntVGZvG3BX7k2-IZ5-qbaGQuGkL9-mo=']); | |
| _jf.push(['p','9094']); | |
| _jf.push(['_setFont','xingothic-tc-w4','css','.xingothic-tc-w4']); | |
| _jf.push(['_setFont','xingothic-tc-w4','alias','xingothic-tc-w4']); | |
| _jf.push(['_setFont','xingothic-tc-w6','css','.xingothic-tc-w6']); | |
| _jf.push(['_setFont','xingothic-tc-w6','alias','xingothic-tc-w6']); | |
| _jf.push(['_setFont','xingothic-tc-w8','css','.xingothic-tc-w8']); | |
| _jf.push(['_setFont','xingothic-tc-w8','alias','xingothic-tc-w8']); | |
| _jf.push(['_eventPreload',function(){ | |
| // preload event. | |
| }]); | |
| _jf.push(['_eventLoaded',function(){ | |
| // loading event. | |
| }]); | |
| _jf.push(['_eventActived',function(){ | |
| // actived event. | |
| }]); | |
| _jf.push(['_eventInactived',function(){ | |
| // inactived event. | |
| }]); | |
| (function(window, document, scriptTag, scriptUrl, scriptElement, scriptFirstElement){ | |
| var _jf = window._jf | |
| , _old_jf = _jf | |
| , e | |
| , htmlElement = document.getElementsByTagName("html")[0] | |
| , hasClass = function(class){ | |
| } | |
| , addClass = function(class){ | |
| if( hasClass(class) ) return; | |
| ( htmlElement.classList ? | |
| ( htmlElement.classList.add(class) ) : | |
| ( htmlElement.className += " " + class ) ); | |
| } | |
| , removeClass = function(class){ | |
| ( htmlElement.classList ? | |
| ( htmlElement.classList.remove(class) ) : | |
| ( htmlElement.className = htmlElement.className.replace(new RegExp("(\\s|^)"+class+"(\\s|$)","g"), " ") ) ); | |
| } | |
| , triggerEvent = function(event){ | |
| for(var e in _jf){ | |
| if( e[0] == event ){ | |
| if( false === e[1].call(_jf) ) return ; | |
| } | |
| } | |
| } | |
| ; | |
| triggerEvent('_eventPreload'); | |
| addClass('jf-loading'); | |
| e = setTimeout(function () { | |
| scriptElement.onload = scriptElement.onreadystatechange = null; | |
| scriptElement.parentNode.removeChild(scriptElement); | |
| } | |
| }, 3000); | |
| scriptElement = document.createElement(scriptTag); | |
| scriptFirstElement = document.getElementsByTagName(scriptTag)[0]; | |
| scriptElement.async = true; | |
| scriptElement.src = scriptUrl; | |
| scriptFirstElement.parentNode.insertBefore(scriptElement,scriptFirstElement); | |
| })(this, this.document, 'script', 'http://ds.justfont.com/js/stable/v/1.13/'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment