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
| <script src="https://cdn.assistive.com.br/plugin/AssistiveWebPlugin.js" charset="UTF-8" type="text/javascript" async="true"></script> | |
| <script> | |
| var waitFn = setInterval(function () { | |
| if (typeof assistive.init === 'function') { | |
| assistive.init({}); | |
| clearInterval(waitFn); | |
| console.log('Plugin Assistive carregou'); | |
| } | |
| }, 500); |
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 token = () => { | |
| const rand = () => { | |
| return Math.random().toString(36).substring(2).substring(0, 5); | |
| }; | |
| let t = ''; | |
| for (i = 0; i < 5; i++) { | |
| t += rand() + '-'; | |
| } |
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
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |
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
| <script type="application/ld+json"> | |
| { | |
| "@context": "https://schema.org", | |
| "@type": "CollegeOrUniversity", | |
| "name": "Albert Einstein Instituto Israelita de Ensino e Pesquisa - Centro de Educação em Saúde Abram Szajman", | |
| "alternateName": "Ensino Einstein", | |
| "url": "https://ensino.einstein.br/", | |
| "logo": "https://einsteinbr.vteximg.com.br/arquivos/einstein-logo-mobile.png", | |
| "sameAs": [ | |
| "https://www.facebook.com/ensino-e-pesquisa-einstein/", |
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
| <script type="application/ld+json"> | |
| { | |
| "@context": "https://schema.org/", | |
| "@graph": [ | |
| { | |
| "@type": "Product", | |
| "name": "Ginecologia e Obstetrícia", | |
| "image": "https://einsteinbr.vteximg.com.br/arquivos/ids/271158-588-325/RESITP006P0102.jpg?v=637993254606200000", | |
| "description": "O programa de Residência Médica em Ginecologia e Obstetrícia conta com toda infraestrutura e tecnologia do Hospital Israelita Albert Einstein (HIAE), desde a atenção básica à saúde até o atendimento de alta complexidade. Os residentes têm participação ativa nas diferentes áreas da especialidade, destacando-se pré-natal de alto e baixo risco, ultrassonografia obstétrica e medicina materno-fetal, pronto atendimento ginecológico e obstétrico, atendimento ginecológico em atenção primária à saúde da mulher, cirurgias ginecológicas, oncologia ginecológica, mastologia, uroginecologia e reprodução assistida.", | |
| "brand": { |
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
| <script type="application/ld+json"> | |
| { | |
| "@context": "https://schema.org/", | |
| "@type": "Product", | |
| "name": "Ginecologia e Obstetrícia", | |
| "image": "https://einsteinbr.vteximg.com.br/arquivos/ids/271158-588-325/RESITP006P0102.jpg?v=637993254606200000", | |
| "description": "O programa de Residência Médica em Ginecologia e Obstetrícia conta com toda infraestrutura e tecnologia do Hospital Israelita Albert Einstein (HIAE), desde a atenção básica à saúde até o atendimento de alta complexidade. Os residentes têm participação ativa nas diferentes áreas da especialidade, destacando-se pré-natal de alto e baixo risco, ultrassonografia obstétrica e medicina materno-fetal, pronto atendimento ginecológico e obstétrico, atendimento ginecológico em atenção primária à saúde da mulher, cirurgias ginecológicas, oncologia ginecológica, mastologia, uroginecologia e reprodução assistida.", | |
| "brand": { | |
| "@type": "Brand", | |
| "name": "Albert Einstein Instituto Israelita de Ensino e Pesquisa - Centro de Educação em Saúde Abram S |
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
| /** | |
| * Renames files to kebab case. By default the output directory will be 'output'. Use at your own risk. | |
| */ | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const scriptName = path.basename(__filename); | |
| const outputDir = 'output/'; |
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 c = document.querySelector('.dots'); | |
| var ul = document.createElement('ul'); | |
| var li; | |
| for (i = 0; i < 4; i++) { | |
| li = document.createElement('li') | |
| li.innerHTML = i; | |
| ul.appendChild(li); | |
| } |
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
| // delay é grande | |
| document.addEventListener("DOMContentLoaded", function() { | |
| let engb_selector = document.querySelector(".language-selector a"); | |
| function changeFlag(el, event_mouse, url_file) { | |
| el.addEventListener(event_mouse, function() { | |
| this.querySelector("img").src = url_file; | |
| }); | |
| } |
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 urls = document.getElementsByTagName('a'); | |
| var table_urls = []; | |
| for(url in urls) { | |
| var link = {}; | |
| if (typeof urls[url].href != 'undefined' && typeof urls[url].text != 'undefined' ) { | |
| var newString = urls[url].text.replace(/\s+/g,' ').trim(); | |
| link.text = newString; | |
| link.url = urls[url].href; |
NewerOlder