(function($$) {
'use strict'
/**
* Supported Language Code
* @return {string} Supported language code
*/
var getCurrentLanguageCode = function() {
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
/** | |
* Take a version from the window query string and load a specific | |
* version of React. | |
* | |
* @example | |
* http://localhost:3000?version=15.4.1 | |
* (Loads React 15.4.1) | |
*/ | |
var REACT_PATH = 'react.js'; |
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
const Router = (function () { | |
"use strict"; | |
/** | |
* @routes | |
* get or set routes | |
*/ | |
var routes = []; | |
/** |
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
'use strict'; | |
// So each country array has the following information: | |
// [ | |
// Country name, | |
// iso2 code, | |
// International dial code, | |
// Format (if available), | |
// Order (if >1 country with same dial code), | |
// Area codes (if >1 country with same dial code) |
I hereby claim:
- I am ali-master on github.
- I am alimaster (https://keybase.io/alimaster) on keybase.
- I have a public key whose fingerprint is A6D5 9733 DE35 AEAB 760F 9589 C20C 8BCD BB84 4D48
To claim this, I am signing this object:
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
$(function() { | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); |