Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body{
height: 100vh;
display: flex;
@yorkfx
yorkfx / Fecha fin de semana
Created January 21, 2024 05:47
Fecha fin de semana
// Desafio 2
const diaSemana = ["Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sabado"];
const d = new Date();
let dia = diaSemana[d.getDay()];
if(diaSemana == "Sabado" || diaSemana == "Domingo"){
console.log(`Si es fin de semana, hoy es ${dia}`);
}
@yorkfx
yorkfx / SearchBar Virtualex
Created May 5, 2023 17:04
SearchBar Virtualex
/*Barra de Busqueda (Mobil)*/
@media only screen and (min-width: 480px){
#yui_3_17_2_1_1683239950936_32,
#block-myoverview-645489c087a9f645489c0870133 .my_course_content .candidate_revew_select .d-flex .mr-2{
min-width: 100%;
}
#yui_3_17_2_1_1683239950936_33,
#block-myoverview-645489c087a9f645489c0870133 .my_course_content .candidate_revew_select .d-flex {
width: 100%;
stage.on("stagemousemove", function(evt) {
_this.nameMovieClip.mouseMoveOutside = true;
console.log(evt.stageX + " - " + evt.stageY); // always in bounds
_this.tooltip.x = (evt.stageX / 2);
_this.tooltip.y = (evt.stageY / 2) ;
});
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="https://player.vimeo.com/api/player.js"></script>
<form id="form1" runat="server">
var queue = new createjs.LoadQueue();
createjs.Sound.alternateExtensions = ["mp3"];
queue.installPlugin(createjs.Sound);
queue.on("complete", handleComplete);
queue.loadFile({id:"audio01", src:"audios/A03_01.mp3"},
{id:"audio02", src:"audios/A03_02.mp3"},
{id:"audio03", src:"audios/A03_03.mp3"});
console.log("mc - mc.currentFrame", mc.currentFrame);
console.log("mc - mc.totalFrames", mc.totalFrames);
console.log("mc - mc.timeline.duration", mc.timeline.duration);
console.log("mc - mc.duration", mc.duration);
@yorkfx
yorkfx / Barra progeso
Created March 6, 2020 18:38
Barra Progreso
//Barra de avance
barritaAvance = new createjs.Shape();
barrita = new createjs.Shape();
bolitaAvance = new createjs.Shape();
barrita.graphics.beginFill("white").drawRoundRectComplex(182, 620, anchoBarra, altoBarra, altoBarra/2, altoBarra/2, altoBarra/2, altoBarra/2);
barritaAvance.graphics.beginFill("#dedede").drawRoundRectComplex(182, 620, posicionbolita, altoBarra, altoBarra/2, 0, 0, altoBarra/2);
bolitaAvance.graphics.beginFill("red").drawCircle(0, 0, 10);
@yorkfx
yorkfx / Email-verifier.js
Created June 4, 2019 04:19 — forked from augfrank/Email-verifier.js
Google Sheet script to verify email addresses automatically
/**
* A custom function that verifies an email ID
*
* @param {String} email ID
* @return {Boolean} If the email ID is active
* @customfunction
*/
function verifyEmail(email) {
// Replace this with your Hunter.io API key