forked from navarrozuara/JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a77358f
commit 9ec491a
Showing
31 changed files
with
2,916 additions
and
44 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,53 @@ | ||
console.log('This would be the main JS file.'); | ||
var sectionHeight = function() { | ||
var total = $(window).height(), | ||
$section = $('section').css('height','auto'); | ||
|
||
if ($section.outerHeight(true) < total) { | ||
var margin = $section.outerHeight(true) - $section.height(); | ||
$section.height(total - margin - 20); | ||
} else { | ||
$section.css('height','auto'); | ||
} | ||
} | ||
|
||
$(window).resize(sectionHeight); | ||
|
||
$(document).ready(function(){ | ||
$("section h1, section h2").each(function(){ | ||
$("nav ul").append("<li class='tag-" + this.nodeName.toLowerCase() + "'><a href='#" + $(this).text().toLowerCase().replace(/ /g, '-').replace(/[^\w-]+/g,'') + "'>" + $(this).text() + "</a></li>"); | ||
$(this).attr("id",$(this).text().toLowerCase().replace(/ /g, '-').replace(/[^\w-]+/g,'')); | ||
$("nav ul li:first-child a").parent().addClass("active"); | ||
}); | ||
|
||
$("nav ul li").on("click", "a", function(event) { | ||
var position = $($(this).attr("href")).offset().top - 190; | ||
$("html, body").animate({scrollTop: position}, 400); | ||
$("nav ul li a").parent().removeClass("active"); | ||
$(this).parent().addClass("active"); | ||
event.preventDefault(); | ||
}); | ||
|
||
sectionHeight(); | ||
|
||
$('img').load(sectionHeight); | ||
}); | ||
|
||
fixScale = function(doc) { | ||
|
||
var addEvent = 'addEventListener', | ||
type = 'gesturestart', | ||
qsa = 'querySelectorAll', | ||
scales = [1, 1], | ||
meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : []; | ||
|
||
function fix() { | ||
meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1]; | ||
doc.removeEventListener(type, fix, true); | ||
} | ||
|
||
if ((meta = meta[meta.length - 1]) && addEvent in doc) { | ||
fix(); | ||
scales = [.25, 1.6]; | ||
doc[addEvent](type, fix, true); | ||
} | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"name":"Desarrollo Web en Entorno Cliente","tagline":"Elisa Navarro Zuara","body":"# Prácticas de JavaScript.\r\n* [Listado Básico 1](ListadoJavaScriptBasico1/index.html)\r\n* [Tarea Tema 3](TareaTema3/index.html)\r\n* [Apariencia de una ventana](AparienciaVentana/index.html)\r\n* [Múltiples ventanas](MultiplesVentanas/index.html)\r\n* [JavaScript tutorial: Array](JavaScriptTutorialArray/index.html)\r\n* [Ejercicio 1 - Prototype](Prototype/Ejercicio1.html)\r\n* [Ejercicio 2 - Prototype](Prototype/Ejercicio2.html)\r\n* [Ejercicio 3 - Prototype](Prototype/Ejercicio3.html)\r\n* [Ejercicio 4 - Prototype](Prototype/Ejercicio4.html)\r\n* [Primos](PrimosClosure/index.html)\r\n* [ArraysMatematicos](ArrayMatematicos/index.html)\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} | ||
{"name":"Desarrollo Web en Entorno Cliente","tagline":"Elisa Navarro Zuara","body":"# Ejercicios de JavaScript.\r\n* [Listado Básico 1](ListadoJavaScriptBasico1/index.html)\r\n* [Tarea Tema 3](TareaTema3/index.html)\r\n* [Apariencia de una ventana](AparienciaVentana/index.html)\r\n* [Múltiples ventanas](MultiplesVentanas/index.html)\r\n* [JavaScript tutorial: Array](JavaScriptTutorialArray/index.html)\r\n* [Ejercicio 1 - Prototype](Prototype/Ejercicio1.html)\r\n* [Ejercicio 2 - Prototype](Prototype/Ejercicio2.html)\r\n* [Ejercicio 3 - Prototype](Prototype/Ejercicio3.html)\r\n* [Ejercicio 4 - Prototype](Prototype/Ejercicio4.html)\r\n* [Primos](PrimosClosure/index.html)\r\n* [ArraysMatematicos](ArrayMatematicos/index.html)\r\n","google":"","note":"Don't delete this file! It's used internally to help with page regeneration."} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
/* | ||
Copyright 2014 GitHub Inc. | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
.pl-c /* comment */ { | ||
color: #969896; | ||
} | ||
|
||
.pl-c1 /* constant, markup.raw, meta.diff.header, meta.module-reference, meta.property-name, support, support.constant, support.variable, variable.other.constant */, | ||
.pl-s .pl-v /* string variable */ { | ||
color: #0099cd; | ||
} | ||
|
||
.pl-e /* entity */, | ||
.pl-en /* entity.name */ { | ||
color: #9774cb; | ||
} | ||
|
||
.pl-s .pl-s1 /* string source */, | ||
.pl-smi /* storage.modifier.import, storage.modifier.package, storage.type.java, variable.other, variable.parameter.function */ { | ||
color: #ddd; | ||
} | ||
|
||
.pl-ent /* entity.name.tag */ { | ||
color: #7bcc72; | ||
} | ||
|
||
.pl-k /* keyword, storage, storage.type */ { | ||
color: #cc2372; | ||
} | ||
|
||
.pl-pds /* punctuation.definition.string, string.regexp.character-class */, | ||
.pl-s /* string */, | ||
.pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */, | ||
.pl-sr /* string.regexp */, | ||
.pl-sr .pl-cce /* string.regexp constant.character.escape */, | ||
.pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */, | ||
.pl-sr .pl-sre /* string.regexp source.ruby.embedded */ { | ||
color: #3c66e2; | ||
} | ||
|
||
.pl-v /* variable */ { | ||
color: #fb8764; | ||
} | ||
|
||
.pl-id /* invalid.deprecated */ { | ||
color: #e63525; | ||
} | ||
|
||
.pl-ii /* invalid.illegal */ { | ||
background-color: #e63525; | ||
color: #f8f8f8; | ||
} | ||
|
||
.pl-sr .pl-cce /* string.regexp constant.character.escape */ { | ||
color: #7bcc72; | ||
font-weight: bold; | ||
} | ||
|
||
.pl-ml /* markup.list */ { | ||
color: #c26b2b; | ||
} | ||
|
||
.pl-mh /* markup.heading */, | ||
.pl-mh .pl-en /* markup.heading entity.name */, | ||
.pl-ms /* meta.separator */ { | ||
color: #264ec5; | ||
font-weight: bold; | ||
} | ||
|
||
.pl-mq /* markup.quote */ { | ||
color: #00acac; | ||
} | ||
|
||
.pl-mi /* markup.italic */ { | ||
color: #ddd; | ||
font-style: italic; | ||
} | ||
|
||
.pl-mb /* markup.bold */ { | ||
color: #ddd; | ||
font-weight: bold; | ||
} | ||
|
||
.pl-md /* markup.deleted, meta.diff.header.from-file */ { | ||
background-color: #ffecec; | ||
color: #bd2c00; | ||
} | ||
|
||
.pl-mi1 /* markup.inserted, meta.diff.header.to-file */ { | ||
background-color: #eaffea; | ||
color: #55a532; | ||
} | ||
|
||
.pl-mdr /* meta.diff.range */ { | ||
color: #9774cb; | ||
font-weight: bold; | ||
} | ||
|
||
.pl-mo /* meta.output */ { | ||
color: #264ec5; | ||
} | ||
|
Oops, something went wrong.