This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ | |
"class": "sidebar_container", | |
// $base02: #073642 | |
//"layer0.tint": [235,235,235], //right border | |
"layer0.opacity": 1.0, | |
"layer0.draw_center": false, | |
"layer0.inner_margin": [0, 0, 1, 0], | |
"content_margin": [0, 0, 1, 0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path_tick = "http://192.168.1.9/optifast-me_com/sites/all/themes/optifast/assets//images/common/right.png"; | |
var tick_mark = "<img src='"+path_tick+"'>"; | |
var path_cross = "http://192.168.1.9/optifast-me_com/sites/all/themes/optifast/assets//images/common/cross.png"; | |
var cross_mark = "<img src='"+path_cross+"'>"; | |
/*check yes or no - replacing*/ | |
$('a, h1, h2, h3, h4, h5, p, span, .heading, div, li').html(function(index,html){ | |
return html.replace(/#yes/g , tick_mark); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--here is the html--> | |
<input id="txt" type = "text" value = "Choose File" onclick ="javascript:document.getElementById('file').click();"> | |
<input id = "file" class="upload-opt" type="file" style='display: none;' name="upload"/> | |
<!--here is the script--> | |
$('#file').on( 'change', function() { | |
var myfile= $( this ).val(); | |
var ext = myfile.split('.').pop(); | |
//alert(ext); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$firstname = $secondname = $phone = $email = $message = ""; | |
if ($_SERVER["REQUEST_METHOD"] == "POST") { | |
$firstname = test_input($_POST["firstname"]); | |
$secondname = test_input($_POST["secondname"]); | |
$phone = test_input($_POST["phone"]); | |
$email = test_input($_POST["email"]); | |
$detail = test_input($_POST["message"]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* custom normal styles starts here */ | |
#pp-nav.right { right: 2px; } | |
* { margin: 0px; padding: 0px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; letter-spacing: initial; -webkit-overflow-scrolling: touch; } | |
ul { padding: 0px; margin: 0px; } | |
.pull-right { float: right !important; } | |
.pull-left { float: left !important; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#dropDownMenu li").each(function(i) { | |
$(this).delay(100 * i).fadeIn(500); | |
}); | |
.sub-menu { | |
position: absolute; | |
z-index: 1000; | |
/* color: #fff; | |
right: 5px; */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#dropDownMenu li").each(function(i) { | |
$(this).delay(100 * i).fadeIn(500); | |
}); | |
.sub-menu { | |
position: absolute; | |
z-index: 1000; | |
/* color: #fff; | |
right: 5px; */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
body { | |
margin: 50px; | |
font-family: sans-serif; | |
} | |
.tooltip { | |
color:#fff;http://jsfiddle.net/user/login/ | |
width: auto; | |
padding:10px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// You need to install the sendgrid client library so run: composer require sendgrid/sendgrid | |
require '/vendor/autoload.php'; | |
// contains a variable called: $API_KEY that is the API Key. | |
// You need this API_KEY created on the Sendgrid website. | |
include_once('./credentials.php'); | |
$FROM_EMAIL = 'YOUR_EMAIL'; | |
// they dont like when it comes from @gmail, prefers business emails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Replace all SVG images with inline SVG | |
*/ | |
jQuery('img.svg').each(function(){ | |
var $img = jQuery(this); | |
var imgID = $img.attr('id'); | |
var imgClass = $img.attr('class'); | |
var imgURL = $img.attr('src'); | |
jQuery.get(imgURL, function(data) { |
OlderNewer