Skip to content

Instantly share code, notes, and snippets.

@KaiserEMP
KaiserEMP / html
Created September 3, 2018 06:05
Very simple OB OS
<?php
/*
* $template->post_title();
*
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
https://litmus.com/signup/coupon/codeschool
https://litmus.com/signup/coupon/codeschool
@KaiserEMP
KaiserEMP / scss
Created February 8, 2018 12:49
Re
.slide-image {
text-align: center;
height: 390px;
width: 100%;
position: relative;
overflow: hidden;
img {
position: absolute;
left: 50%;
top: 50%;
/* Contact list */
$('.contact-list .contact-single .contact-name, .contact-list .contact-single .show_content').click(function(e){
e.preventDefault();
var button = $(this);
var element = $(this).closest('.contact-single');
var details = element.find('.contact-detailed').clone(true);
$('.contact-list .contact-single').removeClass('open');
element.addClass('open');
if (details.length) {
@KaiserEMP
KaiserEMP / TD problems
Last active January 29, 2018 11:46
crossbrowser.
background-clip: padding-box
// submenu ----------------------------
var box = $(".sub-navigation .subnav_container .subnav-menu"), x;
$(".subnav_container .arrow").on('click mouseenter' , function() {
if ($(this).hasClass("subnav-right")) {
x = ((box.width() / 2)) + box.scrollLeft();
box.animate({
scrollLeft: x,
});
} else {
x = ((box.width() / 2)) - box.scrollLeft();
if ( ! Modernizr.objectfit ) {
$('.eda-module-type-social .tab_content_inner div a[rel="instagram-feed"]').each(function () {
var $container = $(this),
imgUrl = $container.find('img').prop('src');
if (imgUrl) {
$container
.css('backgroundImage', 'url(' + imgUrl + ')')
.addClass('compat-object-fit');
}
});
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
.header-nav .megamenu-container > li.current-menu-item > a {
padding-top:11px;
}
}
&.shape-circle {
.eda-module-bg-wrap {
border-radius: 50%;
padding-top: 100%;
position: relative;
.eda-module-custom-content {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 100%;