Skip to content

Instantly share code, notes, and snippets.

View nstone101's full-sized avatar

Nick Stone nstone101

View GitHub Profile
@nstone101
nstone101 / faq
Last active April 16, 2022 16:09
<section class="wrapper bg-light">
<div class="container py-14 py-md-16">
<div class="row gx-lg-8 gx-xl-12 gy-10">
<div class="col-lg-6">
<figure><img class="w-auto" src="./assets/img/illustrations/i5.png" srcset="./assets/img/illustrations/i5@2x.png 2x" alt="" /></figure>
</div>
<!--/column -->
<div class="col-lg-6">
<h2 class="display-4 mb-3">Frequently Asked</h2>
<p class="lead fs-lg mb-6 pe-xxl-10">If we fail to fully <span class="underline">answer to your question</span>, or you have inquiries into other matters please send us an email via <a style="link-decoration:none; color: black;" href="{{ $url.route([contactus]) }}" alt="Contact-Us-Page.html">contact.</p>
/* Defer parsing of JavaScript #905090, 905090 Website speed tast trick, website fast load, javascript website load slow, slow website, Defer parsing website problem */
// This is load slow
<script src='https://www.google.com/recaptcha/api.js' async></script>
//Use this One when you are using Google Recaptcha
Resize Images using Linux Command Line and Imagemagick
Image Resize with linux commands, Compress image with linux linux image compress linux image resize size change image size with linux
https://www.howtogeek.com/109369/how-to-quickly-resize-convert-modify-images-from-the-linux-terminal/
sudo apt-get update
sudo apt-get install imagemagick -y
//Check Image Size
$array = [
[1, 2, 3, 4],
[1, 2, 3, 4],
[1, 2, 3, 4],
];
function flip($array) {
array_unshift($array, null);
return call_user_func_array('array_map', $array);
}
{
"profileId":"64889c6d-6ace-48aa-b45a-f871471532e0",
"cartId":"f2e15bd8-5ac0-40a6-99bd-79083e116d2e",
"dataCenterId":"US-PA",
"draft":false,
"timestamp": 1412180887
}
https://www.danielmorell.com/guides/htaccess-seo/redirects/https-www-and-trailing-slash
## remove domain extension remove .html remove .php remove last extension .htaccess file
## Redirects example.com/cool-page.html to example.com/cool-page
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteCond %{REQUEST_URI} ^(.+)\.html$
RewriteRule (.*)\.html$ /$1 [R=301,L]
// All Steps in SEO
https://www.youtube.com/watch?v=evqV44zapGM&ab_channel=AleemIqbal
SEO
Step 01
https://www.youtube.com/playlist?list=PLvTJ8WFp4oKa7rLukvCsibeN-c7nzeNdY
var products = ["TITLE1", "TITLE2", "TITLE3"];
$( ".btn-coupon" ).click(function(e) {
$( ".cart-line-items-v2 li" ).each(function() {
var productTitle = $(this).find(".line-title").text();
console.log("Product Title: " + productTitle);
for (i = 0; i < products.length; i++) {
if (productTitle == products[i]) {
e.preventDefault;
break;
}
@media (max-width: 768px){
.mobile-summary-switch {
display:none !important;
}
}