Javascript – DOM API access and change the style and content of an HTML element

Javascript – DOM API access and change the style and content of an HTML element

DOM (Document Object Model) can be used to modify HTML elements and CSS styles on the fly. The DOM API is accessible through the document property. Access HTML elements querySelector(selector) – returns the first element querySelectAll(selector) – returns a collection of HTML elements getElementById(id) – same as querySelector() getElementByTagName(tag) getElementsByClassName() Change the style If you want to modify the style on an element, you have to use the style attribute. Then change the CSS property by removing – and make capital the next letter. Exampes: text-align => textAlign / style.textAlign…

Javascript – DOM API access and change the style and content of an HTML element Read More

Kotlin – Visibility and Inheritance Modifiers

Kotlin – Visibility and Access Modifiers

Visibility modifier Visibility modifier defines the scope from where it is visible and can be accessed Classes, objects, functions, interfaces and properties. Kotlin has 4 modifiers: public (it is the default one), private, protected and internal. A class can be accessed from everyone with public modifier. It is the default modifier so you can skip public. public class Car(_name:String ){ var name:String = _name get() { print(“Getter”) return field } set(value) { print(“Setter”) field = value } val description:String = “This is a $name car”} private modifier allows the object…

Kotlin – Visibility and Inheritance Modifiers Read More

Windows Server 2016 – NAT Part 1 | Install Remote Access Server Role

Windows Server 2016 – NAT Part 1 | Install Remote Access Server Role

Before you install the server role, the server must have two NIC’s on with external access and one for internal that the client computers will use as a gateway. That is why you need to configure it with a static IP Address. An example Now open the Server Manager, click Manage and then Add Roles and Features Click 3 times Next. Now select Remote Access Click 3 times Next. Now select Routing Click Add Features Click 3 times Next and then Install. PART 1 THE END !!! Part 2 here…

Windows Server 2016 – NAT Part 1 | Install Remote Access Server Role Read More