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
| <!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; |
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
| // 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}`); | |
| } |
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
| /*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%; |
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
| 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) ; | |
| }); |
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
| <!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"> |
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 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"}); | |
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
| 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); |
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
| //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); |
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
| /** | |
| * 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 |
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
| $(window).scroll(function() { | |
| if ($(this).scrollTop() >= 290) { | |
| $('.top-nav').addClass('sticky-top'); | |
| $ ( '.top-nav .logo img' ).attr('src','img/logo.svg'); | |
| } | |
| else { | |
| $('.top-nav').removeClass('sticky-top'); | |
| $ ( '.top-nav .logo img' ).attr('src','img/logo_white.svg'); | |
| } | |
| }); |
NewerOlder