Skip to content

Instantly share code, notes, and snippets.

View Edwardtonnn's full-sized avatar
🎯
Focusing

Edward Edwardtonnn

🎯
Focusing
  • Los Angeles Web Club
  • South Gate, CA
View GitHub Profile
<div class="mw1500 ">
<img src="/assets/img/inner-circle/innerCircle.jpg" class="modal-img" alt="">
<div class="is-visible-modal text-center">
<img src="/assets/img/inner-circle/innerCircle.jpg" alt="">
</div>
</div>
@Edwardtonnn
Edwardtonnn / convert_images.bat
Last active July 28, 2023 16:03
Convert all img file types to jpg keep same name
for %f in (*.webp *.png *.jpeg) do magick "%f" "%~nf.jpg" & del "%f"
@Edwardtonnn
Edwardtonnn / accordion.html
Created May 3, 2023 18:49
Influx Accordion
<div class="accordion__alt animate fadeIn">
<div class="accordion__item">
<div class="accordion__question">
<i></i>
<h3 class="lead">Additional Reading</h3>
</div>
<div class="accordion__answer" style="max-height: 0px;">
<p></p>
<p></p>
</div>
@Edwardtonnn
Edwardtonnn / cards.html
Created May 3, 2023 18:48
Influx Cards
<section class="mb150">
<div class="container">
<div class="flexy flexy-pad equal-height is-multiline is-variable">
<div class="flexy-item is-4 is-6-widescreen">
<div class="card bg-marble">
<h3 class="title-sm animate fadeIn uppercase text-center">Lorem, ipsum.</h3>
<p class="animate fadeIn">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Nihil, natus?</p>
</div>
</div>
<div class="flexy-item is-4 is-6-widescreen">
@Edwardtonnn
Edwardtonnn / index.js
Created April 19, 2022 16:52
Quick search and replace
let loremFinder = /lorem\sipsum/ig;
document.body.innerHTML = document.body.innerHTML.replaceAll(loremFinder,"Your Mom")
console.log(header);
@Edwardtonnn
Edwardtonnn / .html
Created February 22, 2022 22:40
Cheef Shop Product Code
<!-- CSS -->
<style>
.page-wrapper{
display:flex;
min-width:100%;
}
@media(max-width:900px){
.page-wrapper{
flex-flow:column;
}
@Edwardtonnn
Edwardtonnn / functions.php
Created March 10, 2021 18:19
Adding Actions
/**
* Enqueue Glide.js scripts and styles.
*/
function glide_js_scripts_styles() {
wp_enqueue_style( 'glide-core', get_theme_file_uri( '/glide/glide.min.css' ), array(), filemtime( get_theme_file_path( '/glide/glide.min.css' ) ) );
wp_enqueue_style( 'glide-theme', get_theme_file_uri( '/glide/glide.theme.css' ), array(), filemtime( get_theme_file_path( '/glide/glide.theme.css' ) ) );
wp_enqueue_script( 'glide', get_theme_file_uri( '/glide/glide.min.js' ), array(), filemtime( get_theme_file_path( '/glide/glide.min.js' ) ), true );
@Edwardtonnn
Edwardtonnn / wp-config.php
Created June 3, 2020 18:06
Allows all type of file to be uploaded
define('ALLOW_UNFILTERED_UPLOADS', true);
@Edwardtonnn
Edwardtonnn / .htaccess
Created November 22, 2019 20:13
htaccess rewrite
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
@Edwardtonnn
Edwardtonnn / copyright-year.php
Created September 13, 2019 18:22
Copyright automatically update year for WP footer