File: /home/u590867752/domains/himanshuartinstitute.co.in/public_html/cooding/jspts/coursess.js
var arr1=new Array();
//set the number of menu
var cnt=11;
var tt;
Array.prototype.inArray = function (value)
{
var i;
for (i=0; i < this.length; i++)
{
if (this[i] == value)
{
return true;
}
}
return false;
};
function Show(Click_Menu)
{
tt=Click_Menu.id;
for(i=1;i<=cnt;i++)
{
var tmp="display"+i;
if(tmp==tt)
{
if(Click_Menu.style.display=="none")
{
Click_Menu.style.display="";
}
}
else
{
document.getElementById(tmp).style.display ="none";
}
}
}
function change_color(iid)
{
arr1.splice(0,arr1.length);
for(var i=0;i<=arr.length;i++)
{
if(arr[i]==iid) {
}
else
{
if(arr.inArray(arr[i]))
arr1.push(arr[i]);
}
}
document.getElementById(iid).style.backgroundColor="#008000";
for(var i=0;i<arr1.length;i++)
{
document.getElementById(arr1[i]).style.backgroundColor="#8AC452";
}
}
function disp()
{
document.getElementById('display1').style.display="";
document.getElementById('display2').style.display="none";
document.getElementById('display3').style.display="none";
}
/* Query Slide - Home Page
$(document).ready(function(){
$("#btn1").click(function(){
$("#btn1").hide();
$("#btn2").show();
$(".divClass").slideDown("slow");
});
$("#btn2").click(function(){
$("#btn2").hide();
$("#btn1").show();
$(".divClass").slideUp("slow");
});
});
*/
// OTHER CODES //
$(window).scroll(function() {
if ($(this).scrollTop()> 110)
{
$('#scroller-hide').show(0);
}
else
{
$('#scroller-hide').hide(0);
}
});
$(document).ready(function () {
//Disable cut copy paste
$('body').bind('cut copy', function (e) {
e.preventDefault();
});
//Disable mouse right click
$("body").on("contextmenu",function(e){
return false;
});
});
$(document).ready(function(){
$(".hideee").click(function(){
$(".showww").toggle();
});
});
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
/* COURSE CONTENT */
var colc = new Colcade( '.grid', {
columns: '.grid-col',
items: '.grid-item'
});
/* GALLERY SEARCH CODE A */
function myFunction() {
// Declare variables
var input, filter, ul, li, a, i, txtValue;
input = document.getElementById('myInput');
filter = input.value.toUpperCase();
ul = document.getElementById("myUL");
li = ul.getElementsByTagName('li');
// Loop through all list items, and hide those who don't match the search query
for (i = 0; i < li.length; i++) {
a = li[i].getElementsByTagName("a")[0];
txtValue = a.textContent || a.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
li[i].style.display = "";
} else {
li[i].style.display = "none";
}
}
}
/* GALLERY SEARCH CODE B */
function myFunctions() {
// Declare variables
var input, filter, ul, li, a, i, txtValue;
input = document.getElementById('myInputs');
filter = input.value.toUpperCase();
ul = document.getElementById("myULs");
li = ul.getElementsByTagName('li');
// Loop through all list items, and hide those who don't match the search query
for (i = 0; i < li.length; i++) {
a = li[i].getElementsByTagName("a")[0];
txtValue = a.textContent || a.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
li[i].style.display = "";
} else {
li[i].style.display = "none";
}
}
}
/* WHAT IS ART */
function myFunctionart() {
// Declare variables
var input, filter, ul, li, a, i, txtValue;
input = document.getElementById('whatisart');
filter = input.value.toUpperCase();
ul = document.getElementById("Art");
li = ul.getElementsByTagName('li');
// Loop through all list items, and hide those who don't match the search query
for (i = 0; i < li.length; i++) {
a = li[i].getElementsByTagName("a")[0];
txtValue = a.textContent || a.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
li[i].style.display = "";
} else {
li[i].style.display = "none";
}
}
}
/* WORKSHOPS */
function myFunctionarw() {
// Declare variables
var input, filter, ul, li, a, i, txtValue;
input = document.getElementById('wrkshops');
filter = input.value.toUpperCase();
ul = document.getElementById("mywrksp");
li = ul.getElementsByTagName('li');
// Loop through all list items, and hide those who don't match the search query
for (i = 0; i < li.length; i++) {
a = li[i].getElementsByTagName("a")[0];
txtValue = a.textContent || a.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
li[i].style.display = "";
} else {
li[i].style.display = "none";
}
}
}
/* WORKSHOPS CORPORATE KIDS*/
function myFunctionarwkd() {
// Declare variables
var input, filter, ul, li, a, i, txtValue;
input = document.getElementById('wrkshopskd');
filter = input.value.toUpperCase();
ul = document.getElementById("mywrkspkd");
li = ul.getElementsByTagName('li');
// Loop through all list items, and hide those who don't match the search query
for (i = 0; i < li.length; i++) {
a = li[i].getElementsByTagName("a")[0];
txtValue = a.textContent || a.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
li[i].style.display = "";
} else {
li[i].style.display = "none";
}
}
}