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
$(document).ready(function(){ | |
var hashVal = window.location.hash.substr(1); | |
if(hashVal=='thanks') { | |
$("#myModalur").modal(); | |
} | |
else if(hashVal=='error'){ | |
$("#databaseError").modal(); | |
} else { | |
$('#myModal').modal('show'); |
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
.creports .info h2 { | |
font-size: 12px; | |
margin-top:0; | |
font-weight:600; | |
} | |
.section-cpeir-database .extra-body table p { | |
color: #fff !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
if( $(window).width() > 501) { | |
$(".header_menu .menuparent").mouseover(function(e){ | |
$(this).children('ul').addClass('classX'); | |
e.preventDefault(); | |
return false; | |
}); | |
$(".header_menu .menuparent").mouseout( function(e){ | |
$(this).children('ul').removeClass('classX'); | |
e.preventDefault(); | |
return false; |
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
$('#theContactForm').submit(function(e){ | |
var fullName = $("#name").val(); | |
var sEmail = $('#email').val(); | |
var subject = $('#subject').val(); | |
var message = $('#message').val(); | |
if(fullName == ""){ | |
$('#name').css('border','1px solid red'); | |
} else { |
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 | |
if ($_SERVER['REQUEST_METHOD'] == 'POST' && !empty($_POST)) { | |
include 'config.php'; | |
date_default_timezone_set('Bangkok/Thailand'); | |
$date = $_POST["dateTimeLocal"]; | |
$homeTeamEnter = $_POST["homeTeamChange"]; |
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
$('.defineThis').on('click',function (){ | |
$('#texter').css('display','block'); | |
var z = $(this).attr('data-id'); | |
$.ajax({ | |
type:'GET', | |
dataType: 'XML', | |
url :'http://www.dictionaryapi.com/api/v1/references/collegiate/xml/'+ z +'?key=XXXXXXXXXXXXXXXXXXXXXXXXXXX', | |
success: function(xml) { | |
var d = $(xml).find("dt"); | |
var g = 'https://www.google.co.th/search?q='; |
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
<!-- add to top of functions.php --> | |
<?php | |
add_action( 'vc_before_init', 'vc_before_init_actions' ); | |
function vc_before_init_actions() { | |
require get_parent_theme_file_path( '/custom_components/custom-component-header.php' ); | |
} | |
?> | |
<!--end -> |
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 HEADER BACKGROUND IMAGES ONCE PAGE LOADS /////////*/ | |
$(function(){ | |
/* div container image store in variable */ | |
var $div = $('.home .topHeadForNavBar'), | |
/* store background image css property as variable */ | |
bg = $div.css('background-image'); | |
if (bg) { | |
var src = bg.replace(/(^url\()|(\)$|[\"\'])/g, ''), |
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> | |
#altContainer { | |
position:absolute; | |
min-height:500px; | |
width:400px | |
} | |
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> | |
.arrowDown { | |
position: absolute; | |
top: 0; | |
right: -100px; | |
z-index: 3; | |
text-align: center; | |
width: 100px; | |
} |
OlderNewer