Mudanças entre as edições de "MediaWiki:Common.js"
Ir para navegação
Ir para pesquisar
Linha 9: | Linha 9: | ||
} | } | ||
else { | else { | ||
− | $.getScript( "https://pokerag.com.br/sapphire/js/const.js", function( | + | $.getScript( "https://pokerag.com.br/sapphire/js/const.js", function() { |
− | $.getScript( "https://pokerag.com.br/sapphire/js/db_map.js", function( | + | $.getScript( "https://pokerag.com.br/sapphire/js/db_map.js", function() { |
− | $.getScript( "https://pokerag.com.br/sapphire/js/db_item.js", function( | + | $.getScript( "https://pokerag.com.br/sapphire/js/db_item.js", function() { |
− | $.getScript( "https://pokerag.com.br/sapphire/js/db_skill.js", function( | + | $.getScript( "https://pokerag.com.br/sapphire/js/db_skill.js", function() { |
− | $.getScript( "https://pokerag.com.br/sapphire/js/db_pokemon.js", function( | + | $.getScript( "https://pokerag.com.br/sapphire/js/db_pokemon.js", function() { |
− | $.getScript( "https://pokerag.com.br/sapphire/js/iteminfo.js", function( | + | $.getScript( "https://pokerag.com.br/sapphire/js/iteminfo.js", function() { |
− | $.getScript( "https://pokerag.com.br/sapphire/js/skillinfo.js", function( | + | $.getScript( "https://pokerag.com.br/sapphire/js/skillinfo.js", function() { |
− | $.getScript( "https://pokerag.com.br/sapphire/js/pokedex.js", function( | + | $.getScript( "https://pokerag.com.br/sapphire/js/pokedex.js", function() { |
− | pokedex.process_text('name'); | + | if( typeof pokedex !== 'undefined' ) { |
− | + | pokedex.process_text('name'); | |
+ | pokedex.process_icon(); | ||
+ | } | ||
}); | }); | ||
}); | }); | ||
Linha 29: | Linha 31: | ||
} | } | ||
− | window.dataLayer = window.dataLayer || []; | + | $.getScript( "https://www.googletagmanager.com/gtag/js?id=UA-30251045-5", function( data, textStatus, jqxhr ) |
− | function gtag(){dataLayer.push(arguments);} | + | { |
− | gtag('js', new Date()); | + | window.dataLayer = window.dataLayer || []; |
− | gtag('config', 'UA-30251045-5'); | + | function gtag(){dataLayer.push(arguments);} |
+ | gtag('js', new Date()); | ||
+ | gtag('config', 'UA-30251045-5'); | ||
+ | }); |
Edição das 12h19min de 4 de março de 2020
/* Códigos JavaScript aqui colocados serão carregados por todos aqueles que acessarem alguma página deste wiki */ $.ajaxSetup({ cache: true }); if( typeof pokedex !== 'undefined' ) { pokedex.process_text('name'); pokedex.process_icon(); } else { $.getScript( "https://pokerag.com.br/sapphire/js/const.js", function() { $.getScript( "https://pokerag.com.br/sapphire/js/db_map.js", function() { $.getScript( "https://pokerag.com.br/sapphire/js/db_item.js", function() { $.getScript( "https://pokerag.com.br/sapphire/js/db_skill.js", function() { $.getScript( "https://pokerag.com.br/sapphire/js/db_pokemon.js", function() { $.getScript( "https://pokerag.com.br/sapphire/js/iteminfo.js", function() { $.getScript( "https://pokerag.com.br/sapphire/js/skillinfo.js", function() { $.getScript( "https://pokerag.com.br/sapphire/js/pokedex.js", function() { if( typeof pokedex !== 'undefined' ) { pokedex.process_text('name'); pokedex.process_icon(); } }); }); }); }); }); }); }); }); } $.getScript( "https://www.googletagmanager.com/gtag/js?id=UA-30251045-5", function( data, textStatus, jqxhr ) { window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-30251045-5'); });