This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="page-wrap"> | |
<h1 id="top">Smooth Page Scrolling</h1> | |
<ul> | |
<li><a href="#two">Scroll to Section Two</a></li> | |
<li><a href="#three">Scroll to Section Three</a></li> | |
</ul> | |
<h2 id="one">Section One</h2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use momentjs for display dynamic time. | |
https://momentjs.com/docs/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$post = array( | |
'import_id' => 9999, | |
'comment_status' => 'open', | |
'post_content' => 'hi world!', | |
'post_name' => 'title_1', | |
'post_status' => 'publish', | |
'post_title' => 'your title', | |
'post_type' => 'post', | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(E_ALL); | |
// BigDump ver. 0.36b from 2015-04-30 | |
// Staggered import of an large MySQL Dump (like phpMyAdmin 2.x Dump) | |
// Even through the webservers with hard runtime limit and those in safe mode | |
// Works fine with latest Chrome, Internet Explorer and Firefox | |
// Author: Alexey Ozerov (alexey at ozerov dot de) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button class="js-download-link button" onclick="downloadFile('https://wattswork.s3.amazonaws.com/test-media/video/test_Drop-1280x720-16-9-HD.mp4','dwn.mp4'); return false;">Download MP4 File</button> | |
<button class="js-download-link button" onclick="downloadFile('https://wattswork.s3.amazonaws.com/test-media/PDFs/test-file.pdf','tfile.pdf'); return false;">Download PDF File</button> | |
<button class="js-download-link button" onclick="downloadFile('https://wattswork.s3.amazonaws.com/test-media/Text/test-file.txt','file.txt'); return false;">Download TXT File</button> | |
<script type="text/javascript"> | |
function downloadFile(data, fileName, type="text/plain") { | |
// Create an invisible A element | |
const a = document.createElement("a"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.myModule = window.myModule || {}; | |
myModule.upsellReload = (function() { //global function call from anywhere | |
console.log('Upsell added!'); | |
location.reload(); | |
}); | |
myModule.upsellReload(); //Call function from anywhere |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header> | |
Header | |
</header> | |
<main> | |
<div class="center"> | |
<div class="fullwidth"> | |
Full Width Block | |
</div> | |
<div class="row"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tools: | |
--------- | |
https://gtmetrix.com | |
https://tools.pingdom.com | |
https://developers.google.com/speed/pagespeed/insights | |
Related Articles: | |
---------------------- | |
https://www.elegantthemes.com/blog/tips-tricks/how-to-improve-your-google-page-speed-score |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>jQuery Conveyor Ticker Example</title> | |
<!-- <link href="https://www.jqueryscript.net/css/jquerysctipttop.css" rel="stylesheet" type="text/css"> --> | |
<!-- <link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css" rel="stylesheet" type="text/css"> --> | |
<link href="jquery.jConveyorTicker.min.css" rel="stylesheet"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="pre_header_text visible-web destop_screen" style="background: #000000 none repeat scroll 0 0; color: #ffffff;"> | |
<div class="rw-words rw-words-1 cd-headline slide"> | |
<span class="cd-words-wrapper" style="width: 174px;"> | |
<b class="is-hidden">FREE U.S. Shipping!</b> | |
<b class="is-hidden">FREE U.S. Shipping! 11</b> | |
<b class="is-hidden">FREE U.S. Shipping! 222</b> | |
<b class="is-hidden">FREE U.S. Shipping! 3333</b> | |
<b class="is-hidden">FREE U.S. Shipping! 44444</b> | |
<b class="is-visible">Customize your box options now available!</b> | |
</span> |