Home
Search results “Document getelementbyid style font”
Document.getElementById in Javascript - Lesson 1
 
09:47
What is Document.getElementById in javascript and how does it work
Views: 62 hammadshams
Onlick event, getElementById method, changing a button's text and text color
 
09:09
In this video we demonstrate the onclick method and how to dynamically change the button's attributes with JavaScript.
Views: 19944 vasillis-javed khan
The most Convex Bond?: JavaScript
 
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: 276 Sam Finance Tech
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: 31661 kudvenkat
JavaScript tutorials for beginners in Hindi - 23 - Changing CSS with javascript
 
08:16
In this video I will show you changing CSS with javascript. I will show you that how can you change background color with javascript, change font size with javascript, change background color of body with javascript. For all my tutorials go to: http://websofttutorials.com/ Facebook: https://www.facebook.com/websofttutorials/ Twitter: https://twitter.com/websofttutorial Google Plus: https://plus.google.com/103170090189141800172/posts
Views: 11958 websofttutorials
[ Tutorial ] Javascript - getElementById su testo link e textbox
 
15:26
Javascript: getElementById su testo link e textbox
Views: 75 WebSCHOOL
JavaScript for getElementById
 
02:34
Introduction JavaScript JavaScript is a scripting or programming language that allows you to implement complex things on web pages — every time a web page does more than just sit there and display static information for you to look at — displaying timely content updates, interactive maps, animated 2D/3D graphics, scrolling video jukeboxes, etc. • HTML is the markup language that we use to structure and give meaning to our web content, for example defining paragraphs, headings, and data tables, or embedding images and videos in the page. • CSS is a language of style rules that we use to apply styling to our HTML content, for example setting background colors and fonts, and laying out our content in multiple columns. • JavaScript is a scripting language that enables you to create dynamically updating content, control multimedia, animate images, and pretty much everything else. (Okay, not everything, but it is amazing what you can achieve with a few lines of JavaScript code.) Before You Starting JavaScript You should know basic HTML and CSS
Views: 103 Web Master
ماهي مكتبة Font icons ؟ وشرح لمكتبة Font_Awesome
 
12:38
ماهي مكتبة Font icon ؟ وشرح لمكتبة Font_Awesome http://www.academyati.com/2014/07/font-awesome.html طريقك تتعلم برمجة و تصميم المواقع http://www.academyati.com/2014/07/Your-way-to-learn-programming-and-web-designs.html =============================================== إشترك على قناتنا ليصلك دائما جديد الدروس : https://www.youtube.com/user/vlogHamid يمكنك مشاهدة دورة HTML كاملة هنا : http://goo.gl/XsyPDi دورة PHP و MySql هنا : http://goo.gl/JNT4Ha دورة CSS هنا :http://goo.gl/puLDPv تصميم قالب مدونة HTML5/CSS3 : http://goo.gl/8oeDxo
Views: 2479 Hamid Oumoumen
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: 116182 kudvenkat
What's the difference between IDs & Classes? | HTML, CSS & JavaScript
 
04:46
When developing a website or web application, it's important to keep in mind the difference between an ID and a Class, and to know when to use each one and why. The primary thing to remember about this is that you should be using an ID for a unique element that only exists once on the document whereas classes are more appropriate for multiple elements that serve the same purpose. In this video I take you through this topic and how it affects not only your HTML markup but also your CSS code and JavaScript. For your reference, check this out: https://css-tricks.com/the-difference-between-id-and-class/ Support me on Patreon: https://www.patreon.com/dcode Follow me on Twitter @dcode! If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
Views: 220 dcode
[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: 96 Loan Can Thi
FgColor
 
01:45
FgColor en javascript : http://www.getiteasy.net
Views: 325 Getiteasy
Enkapsualizacija javascript koda
 
06:56
Drugi video u seriji
Views: 317 Danilo Vesovic
JavaScript Basics: using a button to change paragraph text
 
07:49
This youtube summarizes Chapter 1 and teaches JavaScript basics by using a button to change the content in an html paragraph. objects, methods, properties, variables, and assignment statements are reviewed. It also discusses JavaScript syntax and the proper use of inline vs. embedded vs. external JavaScript. All of my youtubes can be found at: http://students.jccc.edu/lisalfri
Views: 782 Lisa Friedrichsen
Q+A - How to alternate text color using JavaScript
 
05:17
Q: How do I color every second character of a string into red in javascript? for example: var a="This is a string". I want the first, the third character and so on to be colored in red. A: Split the string into an array holding each character in the string. Loop over that array and use condition logic to see if the array index position is divisible by any number you wish. If it is then you alter the target element to your liking. Watch the video for code explanation.
Views: 17073 Adam Khoury
Javascript - Changing HTML elements
 
07:54
This tutorial gives an introduction to Javascript by changing HTML elements on the onclick event with the document.getElementById() method.
Views: 3642 Tutormeonlineza
Assigning event handlers in JavaScript using DOM object property
 
10:20
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/assigning-event-handlers-in-javascript.html In JavaScript there are several ways to associate an event handler to the event. In Part 36, we discussed, associating event handler methods to events using the attributes of HTML tags. In this video we will discuss using DOM object property to assign event handlers to events. First let us understand, what is DOM DOM stands for Document Object Model. When a browser loads a web page, the browser creates a Document Object Model of that page. The HTML DOM is created as a tree of Objects. Example : [html] [head] [title]My Page Title[/title] [/head] [body] [script type="text/javascript"] [/script] [div] [h1]This is browser DOM[/h1] [/div] [/body] [/html] JavaScript can be used to access and modify these DOM objects and their properties. For example, you can add, modify and remove HTML elements and their attributes. Along the same lines, you can use DOM object properties to assign event handlers to events. We will discuss the DOM object in detail in a later video session. We will continue with the same examples that we worked with in Part 36. Notice that in this case, we are assigning event handlers using the DOM object properties (onmouseover & onmouseout) instead of using the attributes of the HTML tag. We are using this keyword to reference the current HTML element. In this example "this" references the button control. [input type="button" value="Click me" id="btn"/] [script type="text/javascript"] document.getElementById("btn").onmouseover = changeColorOnMouseOver; document.getElementById("btn").onmouseout = changeColorOnMouseOut; function changeColorOnMouseOver() { this.style.background = 'red'; this.style.color = 'yellow'; } function changeColorOnMouseOut() { this.style.background = 'black'; this.style.color = 'white'; } [/script] The following example is same as the above. In this case we are assigning an anonymous function to onmouseover & onmouseout properties. [input type="button" value="Click me" id="btn" /] [script type="text/javascript"] document.getElementById("btn").onmouseover = function () { this.style.background = 'red'; this.style.color = 'yellow'; } document.getElementById("btn").onmouseout = function () { this.style.background = 'black'; this.style.color = 'white'; } [/script] If an event handler is assigned using both, i.e an HTML attribute and DOM object property, the handler that is assigned using the DOM object property overwrites the one assigned using HTML attribute. Here is an example. [input type="button" value="Click me" id="btn" onclick="clickHandler1()"/] [script type="text/javascript"] document.getElementById("btn").onclick = clickHandler2; function clickHandler1() { alert("Handler set using HTML attribute"); } function clickHandler2() { alert("Handler set using DOM object property"); } [/script] Using this approach you can only assign one event handler method to a given event. The handler that is assigned last wins. In the following example, Handler2() is assigned after Handler1. So Handler2() owerites Handler1(). [input type="button" value="Click me" id="btn"/] [script type="text/javascript"] document.getElementById("btn").onclick = clickHandler1; document.getElementById("btn").onclick = clickHandler2; function clickHandler1() { alert("Handler 1"); } function clickHandler2() { alert("Handler 2"); } [/script]
Views: 50430 kudvenkat
JavaScript DOM Tutorial #5 - Changing Text & HTML Content
 
07:59
Hey gang, in this JavaScript DOM tutorial I'll be showing you how we can edit text content and HTML content using two different properties - textContent and innerHTML. ----- COURSE LINKS: + Atom editor - https://atom.io/a + GitHub Repo - https://github.com/iamshaunjp/JavaScript-DOM-Tutorial --------------------------------------------------------------------------------------------- Other tutorials: ----- JAVASCRIPT FOR BEGINNERS: https://www.youtube.com/playlist?list=PL4cUxeGkcC9i9Ae2D9Ee1RvylH38dKuET ----- CSS FOR BEGINNERS: https://www.youtube.com/playlist?list=PL4cUxeGkcC9gQeDH6xYhmO-db2mhoTSrT ----- NODE.JS TUTORIALS https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp ----- SUBSCRIBE TO CHANNEL - https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1 ============== The Net Ninja ===================== For more front-end development tutorials & to black-belt your coding skills, head over to - https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk ================== Social Links ================== Twitter - @TheNetNinja - https://twitter.com/thenetninjauk
Views: 21571 The Net Ninja
Javascript - Changing Text with Button Click
 
07:11
You can change the text of HTML by button click with the help of JavaScript. For more guides & tutorials: http://learnbuildingwebsite.com Join Facebook group: https://www.facebook.com/groups/learnbuildingwebsites
JavaScript beginner tutorial 31 - radio buttons
 
09:20
The second part of a 2 part tutorial where I show you how to use JavaScript to find out if a radio button has been checked or not. 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: 69300 Quentin Watt Tutorials
Trending Tweet Present : How to Make Moving Text Field Using HTML,Javascript,CSS
 
04:44
Trending Tweet Present : How to Make Moving Text Field Using HTML,Javascript,CSS PLEASE LIKE,SHARE AND SUBCRIBE MY CHANNEL!! *Coding*: <html> <head> <style> div{ border: 1px solid ; overflow: hidden; background-color:red; color:white; font-size:20px; font-weight:bold; } </style> <script> function on_load(){ setInterval('headline()',10); } var count =0; function headline(){ count++; document.getElementById('headline').style.marginLeft = count+"px"; if(count==1000){ count=-1800; document.getElementById('headline').style.marginLeft = count+"px"; } } </script> </head> <body onload="on_load()"> <div> <pre id="headline">Subcribe my channel for more videos Subcribe my channel for more videos Subcribe my channel for more videos Subcribe my channel for more videos</pre> </div> </body> </html> PLEASE LIKE,SHARE AND SUBCRIBE MY CHANNEL!!
Views: 9 Trending Tweet
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: 2284 T3SO Tutorials
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: 17141 kudvenkat
16. Тег input. Атрибут type: color, date, range. Атрибут value, min, max. script, id . Формы
 
32:51
тег input ( ввод, указывать) атрибут type="color" ( цвет ), атрибут (value) атрибут type="date" ( дата ), атрибут (min, max, value) атрибут type="range" ( диапазон ), атрибут (min, max, value, step) тег script ( сценарий ) javascript id (identifier - идентификатор, опознаватель) уникальный признак объекта, позволяющий отличать его от других объектов. ------------------------------------------------------- -script- function FOTO() { format = document.getElementById("scale").value; step= document.getElementById("foto"); step.width = 50*format; } -/script- ------------------------------------------------------- Файл для урока HTML5 (пустой) http://24navo.com/lessons/html_list/i/m/8_blank.html Остальные уроки http://24navo.com/ Файл для урока итог (16) http://24navo.com/lessons/html_list/i/m/16.html
5 Cool Inspect Element Tips
 
07:43
Inspect element is an easy tool, to interact with the source code of any website. And in this video, we'll see 5 cool Inspect Element Hacks. [Video Content] Download anything with Inspect element Reveal Hidden Passwords In Web Browsers View 'locked' content on websites How to Temporarily Edit Any Webpage Update Websites with Inspect Element Console [ Code for console] To make any web page editable -- document.body.contentEditable = true To make bulk find and replace on any website document.getElementById('divID').innerHTML = document.getElementById('divID').innerHTML.replace(/before/g, "after"); [Resource] I use Audio from YouTube audio library. Cold Funk - Funkorama by Kevin MacLeod is licensed under a Creative Commons Attribution licence (https://creativecommons.org/licenses/...) Source: http://incompetech.com/music/royalty-... Artist: http://incompetech.com/ [Contact Me] You can reach me here Website: http://receivetipstricks.com/ Facebook: https://www.facebook.com/ReceiveTips/ Instagram: https://www.instagram.com/dxmrinal/ Twitter: https://twitter.com/ReceiveTips Google plus: https://plus.google.com/u/0/111437874...
Views: 212299 TechWiser
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: 892 Ninja Dev Max
CSS styles in JavaScript (setting and getting) - Beau teaches JavaScript
 
06:38
How to set CSS properties and styles in JavaScript. Also how to get CSS. This video covers style, cssText, setAttribute, and getComputedStyle. 💻 Code: https://codepen.io/beaucarnes/pen/EmVmbZ?editors=1010 🔗 Resource: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Properties_Reference 🐦 Beau Carnes on Twitter: https://twitter.com/carnesbeau ⭐JavaScript Tutorials Playlists⭐ ▶JavaScript Basics: https://www.youtube.com/playlist?list=PLWKjhJtqVAbk2qRZtWSzCIN38JC_NdhW5 ▶Data Structures and Algorithms: https://www.youtube.com/playlist?list=PLWKjhJtqVAbkso-IbgiiP48n-O-JQA9PJ ▶Design Patterns: https://www.youtube.com/playlist?list=PLWKjhJtqVAbnZtkAI3BqcYxKnfWn_C704 ▶ES6: https://www.youtube.com/playlist?list=PLWKjhJtqVAbljtmmeS0c-CEl2LdE-eR_F ▶Clean Code: https://www.youtube.com/playlist?list=PLWKjhJtqVAbkK24EaPurzMq0-kw5U9pJh - We're busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community. Join our community at https://freecodecamp.com Read great tech articles at https://medium.freecodecamp.com
Views: 8470 freeCodeCamp.org
Javascript Tutorial Part 8: Javascript getElementById
 
10:27
http://www.frameworktv.com | LearnToProgram is now Framework. Visit and join for free daily videos teaching digital skills like coding and design. SUBSCRIBE TO THE FRAMEWORK CHANNEL http://www.youtube.com/subscription_center?add_user=UC4msOaZNMfPwMe_ztV5jFH SUBSCRIBE TO OUR EMAIL LIST (LEARN FOR FREE!) http://www.frameworktv.com/?src=YOUTUBE The Javascript getElementById method is one of the most important Javascript functions. However, many programmers who are just starting out have trouble with it. In this Javascript tutorial, Mark discusses how to use the Javascript getElementById method. Mark demonstrates how to dynamically change stylesheet rules, change content within a div and read a text box with the Javascript getElementById. Continue learning Javascript as instructor Mark Lassoff reviews the Javascript getElementById function. VISIT US ON FACEBOOK https://www.facebook.com/frameworkTechnicallySpeaking/ FOLLOW ON TWITTER https://twitter.com/fw_social INSTAGRAM https://www.instagram.com/frameworksocial/
Using JavaScripts tO Change FacebOok background Color [ 100% works ] [2012]
 
01:04
users should Get mozilla firefox before using scripts ! BLUEBAR SIDE NAME COLOR: javascript:void(document.getElementById('blueBar').style.background='red') within the brackets you can write any color for example : javascript:void(document.getElementById('blueBar').style.background='GREEN') INFOBAR SIDE COLOR: javascript:void(document.getElementById('content'). style.background='orange')
Views: 1002 Junglee94
menu responsive html5 css3 javascript | Responsive Navigation Bar with HTML CSS and Javascript
 
15:08
-Link- https://github.com/Javierfelixuts/menu-responsivo-adaptable-con-html5-css3-y-js.git -LINK IMAGENES- :https://wall.alphacoders.com/big.php?i=719146&lang=Spanish -GMAIL- [email protected] Facebook: Express Tutorial https://www.facebook.com/Express-Tuto... SUSCRIBE https://www.youtube.com/channel/UCSdK...
Views: 219 Express Tutorial
javascript  - centering, scaling, zooming, fit the image inside a div
 
02:00
music: perfect 10 - ncs release ----------------------------------------------------------------------------------------- CODE: let canvas = document.getElementById('canvas'); let img = document.getElementById('img'); //positioning big img center to canvas center img.onload = function(){ let x = -(img.width - canvas.offsetWidth)/2+"px" let y = -(img.height - canvas.offsetHeight)/2+"px" console.log(x, "$$$$"); console.log(y, "$$$$"); //scaling.... let ratio = canvas.offsetWidth/img.width console.log(ratio, "$$$$"); img.style.transform = `translate(${x}, ${y}) scale(${ratio})` } //thanks for watching subscribe, share, like, comment.......
Views: 300 Code Travel / Arjun
04 - Hello User JavaScript Interactive Application - Coding Behavior
 
13:41
04 - Hello User JavaScript Interactive Application - Coding Behavior As JavaScript is a behavioral language. Se We use Javascript to add behavior to Hello user application. Example Code: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Hello user application</title> <style type="text/css"> #frmWelcome { background-color:lightgray; font-family:Arial; padding:10px; } </style> </head> <body> <form id="frmWelcome"> <fieldset> <legend>Welcome Form</legend> <label>User Name:</label> <input type="text" id="txtUserName" value=""/> <span id="spnMessage"></span> <br/> <input type="button" id="btnWishUser" value="Wish User" onclick="btnWishUser_onClick()"/> </fieldset> </form> <script type="text/javascript"> function btnWishUser_onClick() { var txtUserName = document.getElementById("txtUserName"); var spnMessage = document.getElementById("spnMessage"); if(txtUserName.value != "") { spnMessage.innerHTML = "Hello " + txtUserName.value; spnMessage.style.color="green"; } else { spnMessage.innerHTML = "Please enter your name"; spnMessage.style.color="red"; } } </script> </body> </html> ======================================================== Follow the link for previous video: https://youtu.be/53UC2RmvCX8 ========= 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 ========================================================
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: 98732 Adam Khoury
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: 788 _ hackTech
Learn JavaScript 1: change text
 
15:36
What I used to make my videos: ● Microphone: http://amzn.to/2yF8dUy ● Pop filter: http://amzn.to/2ArPIQu ● Webcam: http://amzn.to/2ydEvSf ● Video editing software: http://amzn.to/2Aq3nrj 👉 I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com ___ This class introduces students to JavaScript. Within this class, students will learn how to turn a text document into a HTML document, how to cause an alert to open when the website opens or an error happens, and how to change text on a website by a button. https://html5.validator.nu/?showsource=yes _-_-_-Please feel free to ask questions, and sub_-_-_ Email↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ [email protected] Links that help us if you check them out ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ Linkedin: https://www.linkedin.com/in/craigbennettii Reddit: https://www.reddit.com/r/TechReviewsAndHelp/ Git: https://github.com/crua9/ Our website: http://techreviewsandhelp.com Our channel: https://www.youtube.com/user/TechRHelp Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y6HZMBNDG5ZJ4 Patreon/donate: https://www.patreon.com/TechReviewsAndHelp https://twitter.com/TechRHelp
Views: 461 Craig Bennett II
Happy new year 2019 | Pure HTML CSS JAVASCRIPT "Post your Code"
 
02:07
Happy new year 2019 With Progress Bar | Pure HTML CSS JAVASCRIPT "Post your Code" Used : HTML CSS JAVASCRIPT CHROMIUM Subscribe Link : https://www.youtube.com/channel/UC52GfHfIGLW5qwEN2NOeIaw
Views: 126 POST YOUR CODE
Change Style Sheet Using Javascript Tutorial CSS Swap Stylesheet
 
04:46
Lesson Code: http://www.developphp.com/video/JavaScript/Change-Style-Sheet-Using-Tutorial-CSS-Swap-Stylesheet Learn to change the entire style of your web page with a click using JavaScript that is targeting the href attribute of your familiar link element using the setAttribute method of JavaScript. DEMO: http://www.adamkhoury.com/demo/js_swap_css_stylesheet/
Views: 42258 Adam Khoury
Chapter 6 How to change color of text in CSS Hindi
 
08:22
Like, Comments, Share and SUBSCRIBE
HTML Tutorials for Beginners 20 - Head tags 1 -  Document Type
 
02:40
html document, html doctype, html document structure, html document object model, html documents layout, html document in hindi, html doctype explained, html document structure in hindi, html document tutorial, html documentary, html doc types, html to doc, html docx viewer, html to docx, docx to html php html doctype html document html document template html document structure html document example html docs html doctor html document.getelementbyid html document to pdf html document.write html doc template html doc to pdf html doc header html doc setup html doc example html doc structure html doc editor html doc tags html doc boilerplate html doc are saved in html a doc html accept doc html api doc template html a doc online doc html a pdf html to doc aspose save html as doc bas doc html are examples of save html as doc c# a html document html a docx a valid html document requires create a html document starting a html document a simple html document create a html document in notepad open a html document open a html document in word html doc base html basics doc html blank doc doc/html/boost_asio/example/ssl/server.cpp doc/html/boost_asio/example/http/client/async_client.cpp html bootstrap doc doc/html/boost_asio/example/echo html to doc batch converter basic html doc structure html doc converter html doc character encoding html doc creator html doc c# html doc css html doc comments html doc convert to pdf htmldoc charset html doc command line html canvas doc c sharp html document c sharp parse html document c'est quoi doctype html html doctype declaration html doctype declaration utf-8 html doc download html display doc file html display doc html to doc docx4j toad html database doc generator html link to download doc file html do doc simple html dom doc html в doc html doc encoding html doc empty html doc edit html doc embed html doc export html en doc html email doctype doc html en pdf o que e doctype html documentos en html ebook html document o que e documento html html doc format html doc file html doc framework html doc form html doc file link html doc font html doc file view html from doc doc html file extension html doc generator html google doc html google doc viewer html google doc embed html schema doc generator in toad html to doc github convert html google doc html format google doc doc/gflags.html html doc head html doc html5 html help doc html doc html html in doc html into doc html input doc html introduction doc doc.html in jspdf html in doc file javadoc html html to doc in php html_to_doc.inc.php html open doc in new window i doctype html html doc javascript doc.html jspdf html jquery doctype html jquery doc html to doc js html to doc java api html doc to jpg create html doc() javascript html doctype java doc to html convert html ke doc cara mengubah html ke doc cara merubah html ke doc html zu doc konvertieren mengubah html ke doc html doc layout html doc language html doc lang html doc link html to doc linux html doctype line html to doc library html to doc laravel html doc maker html doc mode html mcq doc html manual doc html lab manual doc doc/html/cpu_management.shtml minimal html doc make html doc mime html doc doc html mozilla html notes doc html new doc doc.html nodejs html to doc node html to doc npm html basic notes doc html lecture notes doc html to doc asp.net nokogiri html doc html doc outline html doc online html doc org html doc or file html open doc file html object doc html open doc html open doc in browser html 2 doc online o que é doctype html o que significa doctype html o que é documento html o que é chrome html document o que sao documentos html o que são documentos html html doc pdf html doc preview html doc print html_doc python doc html public html preview doc file html to doc php html to doc php library html doc to pdf online html to doc php script html quiz doc html questions doc html mcq questions doc doc/html/qwt install.html doc/html-qt4qt5/index.html q. html documents are saved in q es un documento html html doc reader html doc root html doc ready html reference doc html project report doc struts html radio doc doc/html/r-admin.html doc/readme.html read html doc in r
Views: 1366 T3SO Tutorials
JavaScript innerHTML Tutorial
 
03:07
Short tutorial the explains the JavaScript innerHTML functionality. Used for a tutorial on https://codedigs.com
Views: 399 Misty Lackie
#2.4 'this' behaviour in Arrow Function vs. Regular Functions in JavaScript. Node.js Tutorial
 
05:38
Access 7000+ courses for 60 days FREE: https://pluralsight.pxf.io/c/1291657/424552/7490 Node Beginner tutorial. Explore how this behaves in a Regular function compared to an Arrow function of Modern JavaScript ES6. Next Video: https://youtu.be/HPfa5cj1rqI Previous Video: https://youtu.be/TXl3Ea46GEU Source Code: https://bit.ly/2CyASea Check out my website: ➤ https://bit.ly/smartherd Donate and support us [Only if you think our courses are better than Udemy or Udacity] ➤ Patreon: https://bit.ly/patreon-donate ➤ Paypal/Payoneer: [email protected] ➤ UPI (only for India): [email protected] Programming courses: ➤ Ruby Programming: https://bit.ly/smyt-r ➤ Dart Programming: https://bit.ly/smyt-d ➤ Kotlin Programming: https://bit.ly/smyt-k ➤ Java Programming: https://bit.ly/smyt-j Flutter course: ➤ Flutter App Development: https://bit.ly/2Rg7EFR Android courses: ➤ Android using Kotlin: https://bit.ly/smyt-ka ➤ Android using Java: https://bit.ly/smyt-ja ➤ Android Material Design: https://bit.ly/2SMJqU6 ➤ Android Jetpack Architecture: https://bit.ly/yt-j ➤ Android Multiple Screen Support: https://bit.ly/smyt-mss ➤ Android Retrofit: https://bit.ly/2Ee6GHn More programming courses: ➤ https://bit.ly/smy-list Follow us on Facebook: https://bit.ly/smartherd-facebook Twitter: https://bit.ly/smartherd-twitter Github: https://bit.ly/smartherd-github ---- Thank you for your love and support ----
Views: 194 Smartherd
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.
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: 891 Developer Partha
JavaScript for changing HTML attribute values
 
04:25
JavaScript tutorial for beginner. JavaScript for changing HTML attribute values.
Views: 116 Web Master
JavaScript Tutorial - CSS selectors - Type and universal selector
 
09:24
https://github.com/webtunings https://www.facebook.com/pages/WebTunings/339234242822202 I highly recommend this book for beginners as well as advanced programmers: http://www.amazon.com/gp/product/0596805527/ref=as_li_qf_sp_asin_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=0596805527&linkCode=as2&tag=webtuningscom-20
Views: 698 WebTunings
JavaScript Can Change HTML Element By getElementById method
 
05:14
This example uses the method to "find" an HTML element by getElementById
Building a JavaScript application - list channels pt 12
 
11:46
In Building a vanilla JavaScript application we make a basic implementation of Slack using JavaScript and Node. The code can be found here: https://github.com/fChristenson/flack
Views: 147 Fredrik Christenson
05 Formatação de Texto Em CSS:  Tamanho, Estilo, Peso e Família da Fonte
 
04:52
A estilização de fontes em CSS font-size: tamanho da fonte; font-style: estilo da fonte; font-weight: peso da fonte; 100 a 900 Esta propriedade CSS consagrou-se como sendo aquela destinada a obter o efeito conhecido como "negrito" cuja finalidade é realçar palavras de um texto, contudo, os efeitos que ela causa vão muito além do simples negrito. Cada número indica um peso de fonte mais escuro que o seu antecessor. • 100 - Thin • 200 - Extra Light (Ultra Light) • 300 - Light • 400 - Normal • 500 - Medium • 600 - Semi Bold (Demi Bold) • 700 - Bold • 800 - Extra Bold (Ultra Bold) • 900 - Black (Heavy) font-family: família (tipo) de fontes: A propriedade font-family é usada para definir uma lista de família de fontes. Uma vez que nem todas as fontes existentes estão instaladas nos computadores dos usuários , CSS fornece um mecanismo para compensar esta lacuna. Você define uma lista de fontes para seu documento a serem usadas na ordem que você definiu (se a primeira da lista não estiver disponível no computador do usuário usar a segunda e assim por diante) e a última fonte da lista deverá ser uma fonte genérica dentre uma das disponíveis: serif, sans-serif, monospace, cursive e fantasy. Ex: font-family: arial, Verdana, sans-serif; text-decoration: irá permitir formatar fontes para usar: sublinhado (underline), sobrelinhado (em cima, overline), fonte cortada ou riscada (line-through), Tirar o Sublinhado de link (none) Deixe seu comentário ou sugestão, inscreva-se no canal para dar uma força e deixe seu like no vídeo. Agradeço a todos que estão colaborando para o crescimento deste canal, meu muito obrigado. Gilvan Oliveira; Facebook: https://www.facebook.com/gilvan.oliveira.7549 Email: [email protected] Link do vídeo: https://youtu.be/hBfUxxoKfho
Views: 244 Gilvan Oliveira
HTML5 Canvas Tutorial: 2D rendering context #1
 
11:08
This HTML 5 tutorial will walk you through how to get access to the drawing context in two different ways. One is by using HTML 5 tags, getting a pointer to it through Javascript's document.getElementById, and the other method is creating a canvas element directly in Javascript. The video also helps you learn how to resize canvas HTML5 style. That means the CSS attributes for width and height do not affect the rendering context's pixel data array dimensions, though it does indeed change the appearance of any and all HTML 5 tags. For more HTML 5 tutorial videos, check out the complete playlist at http://www.youtube.com/playlist?list=PLGJDCzBP5j3xua7wZxIN-AJGvIwPdZ_eX Other links of interest: -- Our YouTube channel http://www.youtube.com/user/easylearntutorial -- Visit our website http://www.easylearntutorial.com for more text and video tutorials, updates, and upcoming tutorial articles and events -- Like us on Facebook http://www.facebook.com/easylearntutorialonline -- Follow us on Twitter http://www.twitter.com/easylearntuts
Views: 2171 Easy Learn Tutorial
Slither.io kasma sorunu kesin çözümü / slither.io precise solution to the lag problem
 
05:46
Link için kod : // ==UserScript== // @name Berkmeno // @namespace www.youtube.com/BerkKurtBerkmeno // @version 0.1.4 // @description slither.io MOD // @author OyunMeno // @match http://slither.io/* // @updateURL http://ogario.ovh/download/SLITio.use... // @grant none // ==/UserScript== (function(w) { var renderMode = 2, // 2 - normal, 1 - simple (mobile) gameFPS = null, positionHUD = null, fpsHUD = null, ipHUD = null, styleHUD = "color: #FFF; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; position: fixed; opacity: 0.35; z-index: 100;", clearedBg = false, clearedGlow = false; function init() { // Append DIVs appendDiv("position-hud", "nsi", styleHUD + "right: 30; bottom: 120px;"); appendDiv("fps-hud", "nsi", styleHUD + "right: 30; bottom: 140px;"); appendDiv("ip-hud", "nsi", styleHUD + "right: 30; bottom: 8;"); positionHUD = document.getElementById("position-hud"); fpsHUD = document.getElementById("fps-hud"); ipHUD = document.getElementById("ip-hud"); // Add zoom if (/firefox/i.test(navigator.userAgent)) { document.addEventListener("DOMMouseScroll", zoom, false); } else { document.body.onmousewheel = zoom; } // Hijack console log if (window.console) { window.console.logOld = console.log; window.console.log = getConsoleLog; } // Set game setGame(); // Clear background and glow clearBg(); // Update game updateGame(); } // Append DIV function appendDiv(id, className, style) { var div = document.createElement("div"); if (id) { div.id = id; } if (className) { div.className = className; } if (style) { div.style = style; } document.body.appendChild(div); } // Zoom function zoom(e) { if (!w.gsc) { return; } w.gsc *= Math.pow(0.9, e.wheelDelta / -120 || e.detail || 0); } // Get console log function getConsoleLog(log) { window.console.logOld(log); if (log.indexOf("FPS") != -1) { gameFPS = log; } } // Set game function setGame() { if (w.render_mode && w.render_mode != renderMode) { w.render_mode = renderMode; } if (w.high_quality) { w.high_quality = false; } if (w.gla && w.gla != 0) { w.gla = 0; } } // Clear background and glow function clearBg() { if (clearedBg && clearedGlow) { return; } if (w.ii && !clearedBg) { w.ii.src = ""; w.ii.onload = null; w.ii = null; if (w.bgi2) { w.bgi2 = null; } clearedBg = true; } if (w.ggbg) { w.ggbg = false; } if (w.gbgi && !clearedGlow) { w.gbgi.src = ""; w.gbgi.onload = null; w.gbgi = null; if (w.gbgmc) { w.gbgmc = null; } clearedGlow = true; } setTimeout(clearBg, 50); } // Update game function updateGame() { if (positionHUD) { positionHUD.textContent = "X: " + (~~w.view_xx || 0) + " Y: " + (~~w.view_yy || 0); } if (fpsHUD && gameFPS) { fpsHUD.textContent = gameFPS; } if (ipHUD && w.bso) { ipHUD.textContent = "IP: " + w.bso.ip + ":" + w.bso.po; } setGame(); setTimeout(updateGame, 500); } // Init init(); })(window);
Views: 161 the luckdog

Bystolic 5 mg for palpitations definition
3chiri definition of socialism
Dosis lumper 100mg clomid
Fluoxetine 40 mg high
Secondo ciclo clomid 50mg