http://twitter.com/share?text=<TITLE>&url=<URL>
E.g. http://twitter.com/share?text=This+is+google+a+search+engine&url=https%3A%2F%2Fwww.google.com
http://www.facebook.com/sharer.php?u=&p[title]=
| // Only using native browser features (no jQuery). | |
| // Uses `fetch`, `DOMParser` and `querySelectorAll`. | |
| const getTitle = (url) => { | |
| return fetch(`https://crossorigin.me/${url}`) | |
| .then((response) => response.text()) | |
| .then((html) => { | |
| const doc = new DOMParser().parseFromString(html, "text/html"); | |
| const title = doc.querySelectorAll('title')[0]; | |
| return title.innerText; |
| const envConfig = { | |
| development: { | |
| SITE_URL: 'http://localhost:3000', | |
| API_URL: 'http://localhost:3000/api' | |
| }, | |
| testing: { | |
| SITE_URL: 'https://test.site.com', | |
| API_URL: 'https://api.test.site.com' | |
| }, | |
| production: { |
| import Vue from 'vue' | |
| export default { | |
| install(Vue) { | |
| Vue.mixin({ | |
| ... metodos, computed, etc | |
| }) | |
| } |
| setInterval(() => { | |
| const newNumber = Math.floor(Math.random() * 10) | |
| document.querySelector("#composerInput").value = 'soy otro del oto boot ' + newNumber | |
| document.querySelector("#u_0_3o > input[type=hidden]").value = 'soy otro del oto boot ' + newNumber | |
| document.querySelector("#comment_form_100000476487163_4034457913246718 > div._7om2._2pin._2pi8._4-vo > div:nth-child(3) > button").disabled = false; | |
| document.querySelector("#comment_form_100000476487163_4034457913246718 > div._7om2._2pin._2pi8._4-vo > div:nth-child(3) > button").click(); | |
| }, 5000); |
| <div class="modal" id="modal-1"> | |
| <div class="modal-box"> | |
| <div class="modal-close"> | |
| <div class="icon-close"></div> | |
| </div> | |
| <div> | |
| <!-- content --> | |
| </div> | |
| </div> | |
| </div> |
| document.addEventListener('wpcf7invalid', function (event) { | |
| console.log('wpcf7invalid') | |
| }, false); | |
| document.addEventListener('wpcf7spam', function (event) { | |
| console.log('wpcf7spam') | |
| }, false); | |
| document.addEventListener('wpcf7mailsent', function (event) { | |
| console.log('wpcf7mailsent') |
| #!/bin/sh | |
| projectname=$1; | |
| # sh deploy-node [name] | |
| cd /var/www; | |
| mkdir $projectname; | |
| cd $projectname; | |
| touch ".env"; | |
| touch ".env"; | |
| mkdir builds; |
| const removeOverlay = () => { | |
| const overlay = document.getElementById('signwall-app') | |
| overlay.remove() | |
| const body = document.querySelector('body') | |
| body.classList.remove('overflow-hidden') | |
| body.style.overflow = 'scroll' | |
| const html = document.querySelector('html') | |
| html.classList.remove('overflow-hidden') |
| <template> | |
| <div :style="{opacity: opacity}"> | |
| <slot /> | |
| </div> | |
| </template> | |
| <script> | |
| import VueGoogleMaps from "map-element.js"; | |
| export default { | |
| mixins: [VueGoogleMaps], | |
| props: { |