Mudanças entre as edições de "MediaWiki:Common.js"
Ir para navegação
Ir para pesquisar
| (5 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
| 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_skill_pc.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(); | ||
| + | pokedex.sprite_mouse(); | ||
| + | } | ||
| + | }); | ||
}); | }); | ||
}); | }); | ||
| Linha 28: | Linha 33: | ||
}); | }); | ||
} | } | ||
| − | + | ||
| − | + | ||
| − | ' | + | $.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'); | ||
}); | }); | ||
Edição atual tal como às 21h19min de 9 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_skill_pc.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();
pokedex.sprite_mouse();
}
});
});
});
});
});
});
});
});
});
}
$.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');
});