Skip to main content

Posts

Showing posts from August, 2022

History Objects in Javascript

  < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta http-equiv = "X-UA-Compatible" content = "IE=edge" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > History Object </ title > </ head > < body >     < button onclick = " back () " > Back </ button >     < button onclick = " forward () " > Forward </ button >     < a href = "https://www.youtube.com" > youtube </ a >     < br >     < p > Go back and forth with go method! </ p >     < button onclick = " back () " > Go Back </ button >     < button onclick = " forward () " > Go Forward </ button > < script >     console . log ( history );     // number of page in history     console...

Location Objects in Javascript

  < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta http-equiv = "X-UA-Compatible" content = "IE=edge" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > BOM Location Object </ title > </ head > < body >     < h1 > Location Object </ h1 >     < button onclick = " google () " > Google </ button >     < button onclick = " reload () " > Reload </ button >     < button onclick = " assign () " > Assign </ button >     < button onclick = " replace () " > Replace </ button >     < p id = "demo" ></ p >     < script >         let origin = window . location . origin ;         document . getElementById ( 'demo' ). innerHTML = origin ;...

BOM window Objects in javascript

  < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta http-equiv = "X-UA-Compatible" content = "IE=edge" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > BOM Window Objects </ title >     </ head > < body >     < h1 > BOM Window Objects </ h1 >     < button onclick = " openWindow () " > Open Window </ button >     < button onclick = " resizeToWindow () " > Resize To Window </ button >     < button onclick = " resizeByWindow () " > Resize By Window </ button >     < button onclick = " closeWindow () " > Close Window </ button >     < script >         var mywindow ;         function openWindow (){             m...

Dispatching/Delaying Jobs in Laravel

  Dispatching/Delaying Jobs You can use the below commands to dispatch the jobs from the controller methods. /** Option 1 */ Queue::push(new MatchSendEmail($options)); /** Option 2 */ dispatch(new MatchSendEmail($options)); /** Option 3 */ (new MatchSendEmail($options))->dispatch(); /** Option 4 */ \App\Jobs\MatchSendEmail::dispatch($options); If you would like to dispatch a job conditionally, you may use the dispatchIf and dispatch unless methods. MatchSendEmail::dispatchIf($accountActive === true, $options); MatchSendEmail::dispatchUnless($accountSuspended === false, $options); Jobs can be dispatched at specific queues also. MatchSendEmail::dispatch($options)->onQueue(‘Email’); You can also delay your Jobs to a given time. MatchSendEmail::dispatch($options)->delay(now()->addMinutes(10)); We can also set tries and timeout properties to the job class, and the queue driver will use these values. After Dispatching a job, you need to process this queue; for this, you have ...

DOM setTimeout and clearTimeout Methods in javascript (One Time Animation).

  < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta http-equiv = "X-UA-Compatible" content = "IE=edge" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > One time Animation </ title >     < style >         .box {             width : 200px ;             height : 200px ;             background-color : cornflowerblue ;         }     </ style > </ head > < body >     < h1 > One Time Animation </ h1 >     < h2 > setTimeout() and clearTimeout() Methods </ h2 >     < p > if you want to perform any animation or any operation and perticular or after      perticular time, according to your ne...

DOM setInterval and clearInterval Methods in javascript

  < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta http-equiv = "X-UA-Compatible" content = "IE=edge" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > setInterval and clearInterval Method </ title > </ head > < style >     .box {         width : 200px ;         height : 200px ;         background-color : cornflowerblue ;     } </ style > < body >     < h2 > setInterval and clearInterval Methods </ h2 >     < h3 > JS Anmation </ h3 >     < p > If we want to animate any element in html than we use setInterval method </ p >     < h3 > Syntex </ h3 >     < p > setInterval(functionName,milisecond) </ p >     ...

DOM Form Events In Javascript

  <! DOCTYPE html > < html >     < head >         < title > Form Events </ title >     </ head >     < body >         < h1 > Form Events </ h1 >         < form action = "" onsubmit = " submitFunction () " >             < label > First Name </ label >             < input type = "text" placeholder = "first_name" id = "fname" value = "adnan" onfocus = " focusFunction ( this ) " onblur = " blurFunction ( this ) " oninput = " inputFunction ( this ) "             onselect = " selectFunction ( this ) " />             < br >             < br >             < label > Last Name </ label >         ...

DOM create methods in javascript

  <! DOCTYPE html > < html > < head >     < title > Dom Create methods </ title > </ head > < body >     < h1 id = "heading" > Dom Create methods </ h1 >     < div id = "content" >         < h3 id = "sub-heading" > sub-heading </ h3 >         < p > Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsam earum           incidunt a accusantium totam ex. Quisquam eos aspernatur veritatis culpa,           sequi itaque facere vero magnam quos enim. Mollitia, debitis voluptatem! </ p >     </ div >         < script >         var newElement = document . createElement ( "p" );         console . log ( newElement );         var newTextNode = document . createTextNo...

Laravel Jobs Queues

 https://www.zealousweb.com/3-easy-steps-to-implement-laravel-queue/ https://stackoverflow.com/questions/42325247/how-to-set-high-low-and-medium-priority-email-using-queue https://learninglaravel.net/cheatsheet/#