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 isXPath = (selector) => { | |
| return selector.startsWith("/") || selector.startsWith("("); | |
| }; | |
| const getElementByXpath = (path) => { | |
| return document.evaluate( | |
| path, | |
| document, | |
| null, | |
| XPathResult.FIRST_ORDERED_NODE_TYPE, |
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> | |
| <head> | |
| <title>My video</title> | |
| <!-- bootstrap css--> | |
| <link rel="stylesheet" href="css/bootstrap.min.css"> | |
| <!-- jquery --> | |
| <script src="js/jquery-3.1.1.min.js"></script> | |
| <!-- bootstrap js--> | |
| <script src="js/bootstrap.min.js" ></script> |
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 testString = "hello world"; | |
| console.log(titleCase(testString)); | |
| console.log(titleCase("this is a captialize titile")); | |
| function titleCase(str){ | |
| var strArray = str.split(" "); | |
| for(var counter=0; counter<strArray.length; counter++){ | |
| strArray[counter] = capitalize(strArray[counter]); | |
| } |
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
| function getElementsByClassName(className) | |
| { | |
| // get all elements in the document | |
| // For IE | |
| if (document.all) | |
| { | |
| var allElements = document.all; | |
| } | |
| else | |
| { |
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
| <html> | |
| <head> | |
| <title>Luno</title> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link href="libs/css/bootstrap.min.css" rel="stylesheet"> | |
| <link rel="stylesheet" type="text/css" href="css/style.css"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
| <script src="libs/js/bootstrap.min.js"></script> |
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
| img { | |
| vertical-align:middle; | |
| border:0; | |
| } | |
| .img-responsive { | |
| max-width:100%; | |
| -ms-interpolation-mode: bicubic; | |
| image-rendering: optimizeQuality; | |
| } |
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
| <html> | |
| <head> | |
| <title>Variables and Operators</title> | |
| </head> | |
| <body> | |
| <h1>var a=2 ; b=5</h1> | |
| <h1>firstname = "Jame" ; lastname="Smith";</h1> | |
| <script> | |
| var a=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
| .rotate{ | |
| -webkit-transition-duration: 0.8s; | |
| -moz-transition-duration: 0.8s; | |
| -o-transition-duration: 0.8s; | |
| transition-duration: 0.8s; | |
| -webkit-transition-property: -webkit-transform; | |
| -moz-transition-property: -moz-transform; | |
| -o-transition-property: -o-transform; | |
| transition-property: transform; |
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
| background-image: url(XXXXX.jpg); | |
| background-repeat: no-repeat; | |
| background-position: center center; | |
| background-attachment: fixed; | |
| -webkit-background-size: cover; | |
| -moz-background-size: cover; | |
| -o-background-size: cover; | |
| background-size: cover; |
NewerOlder