Skip to content

Instantly share code, notes, and snippets.

View DoubleMarv's full-sized avatar

Barry Marv DoubleMarv

View GitHub Profile
@DoubleMarv
DoubleMarv / ims_docosoft_css.css
Last active January 30, 2023 07:37
ims_docosoft_css
.wpcf7 form.sent .wpcf7-response-output {
border-color: #cddf1a !important;
background-color: #cddf1a !important;
color: #1A083D !important;
font-weight: bold !important;
}
This file has been truncated, but you can view the full file.
[{"id":109,"title":"Neasa Daly","link":"neasa-daly","mainimage":"http:\/\/develop-hurrah-hurrah.com\/storage\/mturebuild\/data\/wp-content\/uploads\/2022\/07\/1.jpg","subimages":{"email":null,"personal_website":null,"social_media_links":null,"video_src_url":null,"year_graduated":null,"more_videos":null,"images":null}},{"id":203,"title":"Teresa Watkins","link":"teresa-watkins","mainimage":"http:\/\/develop-hurrah-hurrah.com\/storage\/mturebuild\/data\/wp-content\/uploads\/2022\/07\/1-6.jpg","subimages":{"email":"teresawatkins@live.ie","personal_website":"https:\/\/www.facebook.com\/TeresaWatkinsArt\/","social_media_links":false,"video_src_url":"https:\/\/vimeo.com\/712592713?embedded=true&source=video_title&owner=127052837","year_graduated":"y_2022","more_videos":false,"images":[{"image":{"ID":205,"id":205,"title":"2","filename":"2-5.jpg","filesize":209869,"url":"http:\/\/develop-hurrah-hurrah.com\/storage\/mturebuild\/data\/wp-content\/uploads\/2022\/07\/2-5.jpg","link":"http:\/\/develop-hurrah-hurrah.com\/st
@DoubleMarv
DoubleMarv / gist:41fc09e4d9c64e3f07c34e0b52c3628f
Created September 9, 2021 16:06
HTML bulma container no margin on right
.container.rightfullwidth{
margin-right: 0;
@media only screen and (max-width: 768px) {
width: 100% !important;
max-width: 100%;
}
@media only screen and (min-width: 769px) {
width: 100% !important;
max-width: 100%;
@DoubleMarv
DoubleMarv / gist:4805a0e1abe4b1d724eff186a654ab53
Created September 2, 2020 13:13
Remove default jquery and load new in Wordpress
// include custom jQuery
function trone_include_custom_jquery() {
wp_deregister_script('jquery');
wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js', array(), null, true);
}
add_action('wp_enqueue_scripts', 'trone_include_custom_jquery');
<style>
/*scss*/
.bustoutphotoleftsection{
@media screen and (min-width:768px){
padding: 4.25rem 0 2rem;
}
@media screen and (max-width:767px){
padding: 1.5rem;
}
background-repeat: no-repeat;
.backdotsleft{
top: 0;
left: -10em;
background-image: url(../img/general/dots.png);
background-size: 10em;
background-repeat: no-repeat;
border-radius: 3px;
height: 10em;
position: absolute;
width: 10em;
@DoubleMarv
DoubleMarv / gist:d0faaf3d3f5baa744b01347043b7a4a2
Created August 6, 2020 14:40
CSS: Pseudo custom width border under title
//afterline
h4{
color: #000;
font-size: 22px;
font-size: 1.45rem;
font-weight: 600;
margin-bottom: 1em;
display: inline-block;
padding-bottom: 0.5em;
line-height: 1.25em;
@DoubleMarv
DoubleMarv / gist:23362df4c3dfc0c8855023d667f0ca85
Created April 29, 2020 11:35
dynamically add mp4 video from data-src to src
//html
<video muted loop data-src="vid/packaging.mp4" id="internalbannervideo">
<source src="" type="video/mp4">
</video>
//js
function swapVidSource() {
var vidplayer = document.getElementById("internalbannervideo");
var thedata = vidplayer.getAttribute('data-src');
@DoubleMarv
DoubleMarv / gist:46971aafe384641c8f2fce48dfb700ab
Created April 10, 2020 09:44
Lottie animation in container
<div class="toppush"></div>
<section class="sectionpadding section-a backbeanright" id="section-home-a">
<div class="container">
<div class="columns is-marginless is-centered">
<!-- /////////////// ////////////////////-->
<div class="column is-5 gentext has-text-left">
<h2>Some <span>Title</span></h2><hr>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
@DoubleMarv
DoubleMarv / gist:767b976be3cc0d39cf262010b006cd64
Created April 10, 2020 07:18
Underscorejs where and map
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Underscore basic</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js"></script>
</head>
<body>
<div id="demo"></div>