Skip to content

Instantly share code, notes, and snippets.

View anwerashif's full-sized avatar
🚩
Coding

Anwer Ashif anwerashif

🚩
Coding
View GitHub Profile
@anwerashif
anwerashif / Wistia-download-videos.md
Created February 21, 2025 16:33 — forked from szepeviktor/Wistia-download-videos.md
Download Wistia videos - Please do not misuse it!

Download Wistia videos

  1. right-click on the playing video, select Copy link
  2. find Wistia video ID in the copied link e.g. wvideo=tra6gsm6rl
    • alternative: look for e.g. hashedId=tra6gsm6rl in the page source
  3. load http://fast.wistia.net/embed/iframe/ + video ID in your browser
  4. look for "type":"original" in the page source and copy the URL from the next line e.g. "url":"http://embed.wistia.com/deliveries/129720d1762175bcd8e06dcab926ec76ad38ff00.bin"
  • alternative: look for "type":"hd_mp4_video"
@anwerashif
anwerashif / custom.html
Created February 18, 2025 04:55
Code to Add Current Date
<script>
document.addEventListener("DOMContentLoaded", function () {
// Select the element
const dateElement = document.querySelector(".myDate u");
if (dateElement) {
// Format the current date as "Month DD, YYYY"
const options = { year: "numeric", month: "long", day: "2-digit" };
const currentDate = new Date().toLocaleDateString("en-US", options);
@anwerashif
anwerashif / custom.html
Last active February 19, 2025 02:56
Stock Countdown Text
<p style="font-size:16px; text-align: right; color: #303030;">Just <span class="stockCountdown" style="font-weight:bold; color: black;">15</span> left in stock</p>
<script>
document.addEventListener("DOMContentLoaded", function () {
var minute = 15;
var sec = 6;
setInterval(function() {
document.querySelectorAll(".stockCountdown").forEach(el => {
el.innerHTML = minute;
});
sec--;
@anwerashif
anwerashif / custom.html
Created February 8, 2025 16:14
Code for Creating Image Tab Contents for Funnelish
<script>
document.addEventListener('DOMContentLoaded', () => {
const contentabs = document.querySelector(".tabContents");
const content = Array.from(contentabs.children);
content.forEach((item, index) => {
item.classList.add("content-tab");
if (index === 0) {
item.classList.add("active");
}
@anwerashif
anwerashif / custom.js
Created February 7, 2025 13:21
Custom JS Code to Add Numbers In FAQ's Question
document.querySelectorAll('.faq-header').forEach((header, index) => {
const number = (index + 1).toString().padStart(2, '0');
header.innerHTML = `<span style="font-weight: bold; margin-right: 8px;">${number}.</span> ${header.innerHTML}`;
});
@anwerashif
anwerashif / custom.html
Created February 6, 2025 08:40
Mobile Menu for Funnelish
<section class="top-nav">
<input id="menu-toggle" type="checkbox">
<label class="menu-button-container" for="menu-toggle">
<div class="menu-button"></div>
</label>
<ul class="menu">
<li><a href="#">Track order</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">FAQ</a></li>
</ul>
@anwerashif
anwerashif / script.js
Created February 4, 2025 09:24
Funnelish Sales Notification Popups Like Proofy
(function () {
const sampleData = [
{
name: "Nola D.",
location: "New York",
product: "Bundle of 3 Correct & Boost Serums",
mapImage: "https://img.funnelish.com/51272/685804/1737272988-3NUWR_1UTUTU-Photoroom.webp"
},
{
name: "Emma R.",
@anwerashif
anwerashif / Elementor Progress Bar Animation CSS.css
Created June 27, 2022 06:04
Elementor Progress Bar Animation CSS
.c-loading .elementor-progress-wrapper {
-webkit-animation-duration: 10s;
animation-duration: 7s;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-name: loading;
animation-name: loading;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
}
<?php
$fields = array (
'field-01' => __( 'Icon URL', 'menu-item-custom-icon_field' ),
'field-02' => __( 'New Field', 'menu-item-custom-new_field' ),
);
// funtion to add fields to menu item
function add_menuset_c_fields( $id, $item, $depth, $args ) {
@anwerashif
anwerashif / front-page.php
Created May 17, 2018 13:39
Creating Custom Front Page Template Design for Blog in Genesis >> https://rainastudio.com/custom-front-page-template-design/
<?php
/**
* Front Page.
*
* @package StudioPlayer
* @link https://rainastudio.com/themes/studioplayer
* @author RainaStudio
* @copyright Copyright © 2018 RainaStudio
* @license GPL-2.0+
*/