Find Last Date of Month Using Any Function in SAP

SAP Expert
Updated on 12-Jun-2020 08:15:48

160 Views

You can try using DateSerial() function.DateSerial returns a Date value for the specified year, month and day. It also handles relative Date expressions.Argumentsyear is a whole Number or numeric expression representing a year, example: 1996.month is a whole Number or numeric expression representing a month, example: 12 for December.day is a whole Number or numeric expression representing a day of the month, example: 5.ReturnsA Date value.ActionDateSerial returns a Date value for the specified year, month and day. It also handles relative Date expressions.DateSerial (2000, 6, 15)DateSerial (2004, 1 - 7, 15)DateSerial (2008, 1, 166)Check the below code as it finds ... Read More

Work with Bootstrap

Chandu yadav
Updated on 12-Jun-2020 08:14:39

187 Views

To work with Bootstrap, the following are the steps − Download the latest version of Bootstrap from the official website.On reaching the page, click on DOWNLOAD for current version 4.1.1You have two options on clicking Download above,Download Bootstrap − Clicking this, you can download the precompiled and minified versions of Bootstrap CSS, JavaScript, and fonts. No documentation or original source code files are included.Download Source − Clicking this, you can get the latest Bootstrap LESS and JavaScript source code directly from GitHub.

Footer Not Working in SAPUI5 Application

SAP Expert
Updated on 12-Jun-2020 08:13:30

521 Views

Try embedding page in “sap.m.App control”.This is an example of showing and hiding footer, check this link:UI5 Documentation

What are Async Generator Methods in JavaScript

Ayyan
Updated on 12-Jun-2020 08:08:22

236 Views

Async generator functions are the same like generator function. The async generator functions will return an object, whereas an async generator whose methods such as next, throw and return promises for { value, done }, instead returning directly.ExampleHere’s an example from GitHub showing function returning async generator object −async function* readLines(path) {    let file = await fileOpen(path);       try {          while (!file.EOF) {             yield await file.readLine();          }       } finally {       await file.close();    } }

HTML Canvas shadowColor Property

Arjun Thakur
Updated on 12-Jun-2020 08:00:20

161 Views

The shadowColor property of the HTML canvas is used to set the color for shadow. The default value is #000000.Following is the syntax −ctx.shadowColor=color;Above, set the color for shadow.Let us now see an example to implement the shadowColor property of canvas −Example Live Demo    var c = document.getElementById("newCanvas");    var ctx = c.getContext("2d");    ctx.shadowBlur = 20;    ctx.shadowColor = "gray";    ctx.fillStyle = "blue";    ctx.fillRect(40, 40, 200, 250); Output

CSS rest After Speech Media Property

Nishtha Thakur
Updated on 12-Jun-2020 07:40:13

161 Views

The CSS rest-after property is useful for speech media to set pause after an element.The following is the syntax −rest-after: | none | x-weak | weak | medium | strong | x-strongHere, x-weak | weak | medium | strong | x-strong is the rest by the strength of pauseLet us see an example of rest-after speech media property −h1 {    rest-after: 15ms; }The time sets the pause in milliseconds.

Change Background Color of a Web Page Using onMouseOver Property

Arjun Thakur
Updated on 12-Jun-2020 07:20:30

7K+ Views

The onmouseover property allows you set a script when the mouse pointer is moved onto an element. To change the background color, use the HTML DOM backgroundColor property.Let us see an example to implement the onmouseover property and change the background color −Example Live Demo Heading Two    Hover over me to change the background color. OutputNow hover over the text to change the background color of the web page −

Call a Function Inside a jQuery Plugin from Outside

Amit D
Updated on 12-Jun-2020 07:19:19

953 Views

To call a function inside a jQuery plugin from outside, try to run the following code. The code updates the name with jQuery as an example using properties:Live Demo                          $.fn.person = function(prop) {             var defaults = $.extend({                name: 'Amit'             }, prop);                 // methods to be used outside of the plugin             var person = ... Read More

Call a jQuery Library Function

David Meador
Updated on 12-Jun-2020 07:16:50

3K+ Views

Calling a JavaScript library function is quite easy. You need to use the script tag. As almost everything we do when using jQuery reads or manipulates the document object model (DOM), we need to make sure that we start adding events etc. as soon as the DOM is ready.If you want an event to work on your page, you should call it inside the $(document).ready() function. Everything inside it will load as soon as the DOM is loaded and before the page contents are loaded.To do this, we register a ready event for the document as follows:$(document).ready(function() {    // ... Read More

Include CDN-Based Version of jQuery in HTML File

Amit Diwan
Updated on 12-Jun-2020 07:15:34

590 Views

Easily include jQuery library into your HTML code directly from Content Delivery Network (CDN). Google and Microsoft provide content delivery for the latest version.You can try to run the following code to learn how to use Google CDN for jQuery:ExampleLive Demo           jQuery CDN                              $(document).ready(function(){             document.write("Tutorialspoint!");          });                         Hello        

Advertisements