$(function() {
$(".submit").click(function()
{
var name = $("#name").val();
var table = $("#table").val();
var comment = $("#comment").val();
var post_id = $("#post_id").val();
var dataString = 'name='+ name + '&table=' + table + '&comment=' + comment+ '&post_id=' + post_id;
if(name=='' || table=='' || comment=='')
{
alert('Tous les champs sont obligatoires');
}
else
{
$("#flash").show();
$("#flash").fadeIn(400).html(' Chargement ...');
$.ajax({
type: "POST",
url: "conf/commentajax.php",
data: dataString,
cache: false,
success: function(html){
$("ul#update").append(html);
$("ul#update li:last").fadeIn("slow");
document.getElementById('comment').value='';
$("#flash").hide();
}
});
}return false;
}); });
function SendForm(){
document.formulaire.submit();
}
function titlespan(mbroch){
document.getElementById('titlevid').innerHTML = ': '+mbroch;
return false;}
function delltitlespan(){
document.getElementById('titlevid').innerHTML = '';
return false;}
$(document).ready(function() {
$().UItoTop({ easingType: 'easeOutQuart' });
$('#goplay').click(function() {
$('.disable').toggle("slow");
});
$('.nav').mouseleave(function() {
$('.disable').slideUp('slow');
});
if($.cookie('cookiebarc') === null){
$('body').append('
En poursuivant votre navigation sur le site www.grizzmine.com vous acceptez l\'utilisation de cookies permettant d\'améliorer votre expérience utilisateur.
ok
');
$('#cookie_btn').click(function(e){
e.preventDefault();
$('#cookiebar').fadeOut();
$.cookie('cookiebarc', '1', { expires: 365 });
});
};
$('.moretagclip').click(function() {
$('#taginfo').toggle("slow");
return false;
});
$('#pagbar').attr('align', 'center');
$('#Pagination').attr('align', 'center');
$('div#logotraver').prepend(' Grizzmine ');
$("#topnav li").prepend(" ");
$("#topnav li").each(function() {
var linkText = $(this).find("a").html();
$(this).find("span").show().html(linkText);
});
$("#topnav li").hover(function() {
$(this).find("span").stop().animate({
marginTop: "-40"
}, 250);
} , function() { //On hover out...
$(this).find("span").stop().animate({
marginTop: "0"
}, 250);
});
$('span.playdyna').click(function() {
var id_vid = $(this).attr("alt");
var player_flash = ' ';
$("#dnamikplayer").html(player_flash);
$("#dnamikplayer").css("display","block");
$('html,body').animate({scrollTop: $("#titlevid").offset().top}, 200);
$('div.container').addClass('container3');
document.title= '▶ '+artiste;
});
$('span.grid').click(function() {
$('ul#datalist').addClass("thumb_vid");
$('ul#datalist').removeClass("thumb_list")
if($('body').height() >= 2000 && $('body').height() <= 2500 ){
$('div.container').addClass('container2');
}
if($('body').height() >= 2500 ){
$('div.container').addClass('container3');
}
if($('body').height() <= 2500 ){
$('div.container').removeClass('container3');
}
$.cookie('vid_list', 'grid', { expires: 7, path: '/'});
});
$('span.list').click(function() {
$('ul#datalist').addClass("thumb_list");
$('ul#datalist').removeClass("thumb_vid");
if($('body').height() >= 2000 && $('body').height() <= 2500 ){
$('div.container').addClass('container2');
}
if($('body').height() >= 2500 ){
$('div.container').addClass('container3');
}
$.cookie('vid_list', 'list', { expires: 7, path: '/'});
});
if($('div.container').height() >= 2000 && $('div.container').height() <= 2500 ){
$('div.container').addClass('container2');}
if($('div.container').height() >= 2500 ){
$('div.container').addClass('container3');}
$("ul.thumb li").hover(function() {$(this).css({'z-index' : '10'});$(this).find('img').addClass("hover").stop().animate({marginTop: '-125px', marginLeft: '-145px', top: '55%', left: '65%', width: '175px', height: '149px',padding: '20px' }, 200);
} , function() {
$(this).css({'z-index' : '0'});
$(this).find('img').removeClass("hover").stop().animate({marginTop: '0', marginLeft: '0',top: '0', left: '0', width: '135px', height: '115px', padding: '5px'}, 400);
});
// Carousel
$("#carousel").featureCarousel({});
});
jQuery.extend(jQuery.easing,{easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a'+settings.text+'');
$(containerIDhash).hide().click(function(){
$('html, body').animate({scrollTop:0}, settings.scrollSpeed, settings.easingType);
$('#'+settings.containerHoverID, this).stop().animate({'opacity': 0 }, settings.inDelay, settings.easingType);
return false;
})
.prepend(' ')
.hover(function() {
$(containerHoverIDHash, this).stop().animate({
'opacity': 1
}, 600, 'linear');
}, function() {
$(containerHoverIDHash, this).stop().animate({
'opacity': 0
}, 700, 'linear');
});
$(window).scroll(function() {
var sd = $(window).scrollTop();
if(typeof document.body.style.maxHeight === "undefined") {
$(containerIDhash).css({
'position': 'absolute',
'top': $(window).scrollTop() + $(window).height() - 50
});
}
if ( sd > settings.min )
$(containerIDhash).fadeIn(settings.inDelay);
else
$(containerIDhash).fadeOut(settings.Outdelay);
});
};
})(jQuery);
function openerfb(){
window.open('conf/fb2/connect.php', '_blank', 'toolbar=0, location=0, directories=0, status=0, scrollbars=0, resizable=1, copyhistory=0, menuBar=0, width=500, height=420');
}
function clickclear(thisfield,defaulttext){
if(thisfield.value==defaulttext){thisfield.value=""}
}
function clickrecall(thisfield,defaulttext){
if(thisfield.value==""){thisfield.value=defaulttext}
}
// Ajout pannier
function gopannier(id){
document.location.href='boutique_panier.php?addproduit='+id;
}
// boutique
function go_boutik(){
document.location.href='boutique.php';
}
function go_commande(){
document.location.href='https://www.grizzmine.com/boutique/confirm_shop.php';
}
function dellform(){
document.form1.submit();
}
function dellback(){
document.getElementById('comment').style.background='#FFF';
document.getElementById('smiley').style.display='block';
}
function addfavido(id){
(new Image()).src="conf/js_req.php?id="+id+"&md=1&tbl=video";
document.getElementById('toolsfav').innerHTML =' ';
return true;
}
function dellfavido(id){
(new Image()).src="conf/js_req.php?id="+id+"&md=2&tbl=video";
document.getElementById('toolsfav').innerHTML =' ';
return true;
}
function addfavidoind(id){
(new Image()).src="conf/js_req.php?id="+id+"&md=1&tbl=video";
document.getElementById('vid'+id).innerHTML =' ';
return true;
}
function dellfavidoind(id){
(new Image()).src="conf/js_req.php?id="+id+"&md=2&tbl=video";
document.getElementById('vid'+id).innerHTML =' ';
return true;
}
function playermp3(id,artiste,fav){
if(fav==0){
locat = 'player.php?id='+id;
}
else{
locat = 'player.php?fav='+fav+'&id='+id;
}
document.getElementById('playerblock').src=locat;
document.getElementById('shr').style.display='block';
var urling = 'https://www.grizzmine.com/sons-rap-player-'+id+'.html';
document.getElementById('share').value=urling;
document.getElementById('fblink').href='https://facebook.com/sharer.php?u='+urling;
document.title= '▶ '+artiste;
document.getElementById('recomail').src='conf/recomail.php?id='+id+'&tbl=2';
document.getElementById('sharerplus').src='conf/sharerplus.php?id='+id;
document.getElementById('comentsa').src='conf/sharerplus.php?id='+id+'&com=1';
document.getElementById('linktwitter').href='http://twitter.com/home?status='+artiste+'%20en%20ecoute%20sur%20=%3E%20'+urling+'%20@grizzmine';
return false;}
function extrait(sound){
var mp3 = 'https://www.grizzmine.com/lecteur/'+sound+'.mp3';
document.getElementById("myplayer").innerHTML=" ";}
function extrait2(sound){
var mp3 = 'https://www.grizzmine.com/lecteur/'+sound+'.mp3';
document.getElementById("myplayer").innerHTML=" ";}
function nomembre(sajme){
var message = ' '+sajme;
if(sajme ==''){ var message = '';}
Boxy.alert("Vous devez être membre "+message+" !!!S'identifier | S'inscrire ", null, {title: 'Désolé'});
return false;}
function noblck(sajme){
var message = ' '+sajme;
if(sajme ==''){ var message = '';}
Boxy.alert("Vous utilisez un anti-pub de type AdBlock. Merci de le désactiver sur notre site, ces revenus nous aides aux divers frais d\'hebergement du site et de son contenu.", null, {title: 'Adblock'});
return false;}
function ofcontact(){
Boxy.alert("Le forumlaire de contact est momentanément désactivé !!", null, {title: 'Désolé'});
return false;}
function writeContent(thisPage,artiste){
document.getElementById("player1").SetVariable("player:jsPlay", thisPage);
document.title= '▶ '+artiste;}
jQuery.cookie=function(key,value,options){if(arguments.length>1&&String(value)!=="[object Object]"){options=jQuery.extend({},options);if(value===null||value===undefined){options.expires=-1}if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setDate(t.getDate()+days)}value=String(value);return(document.cookie=[encodeURIComponent(key),'=',options.raw?value:encodeURIComponent(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''))}options=value||{};var result,decode=options.raw?function(s){return s}:decodeURIComponent;return(result=new RegExp('(?:^|; )'+encodeURIComponent(key)+'=([^;]*)').exec(document.cookie))?decode(result[1]):null};
jQuery.cookie = function (key, value, options) {
if (arguments.length > 1 && String(value) !== "[object Object]") {
options = jQuery.extend({}, options);
if (value === null || value === undefined) {
options.expires = -1;
}
if (typeof options.expires === 'number') {
var days = options.expires, t = options.expires = new Date();
t.setDate(t.getDate() + days);
}
value = String(value);
return (document.cookie = [
encodeURIComponent(key), '=',
options.raw ? value : encodeURIComponent(value),
options.expires ? '; expires=' + options.expires.toUTCString() : '',
options.path ? '; path=' + options.path : '',
options.domain ? '; domain=' + options.domain : '',
options.secure ? '; secure' : ''
].join(''));
}
options = value || {};
var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent;
return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null;
};
(function(){var Tinycon={};var currentFavicon=null;var originalFavicon=null;var originalTitle=document.title;var faviconImage=null;var canvas=null;var options={};var defaults={width:7,height:9,font:'10px arial',colour:'#ffffff',background:'#F03D25',fallback:true};var ua=(function(){var agent=navigator.userAgent.toLowerCase();return function(browser){return agent.indexOf(browser)!==-1}}());var browser={chrome:ua('chrome'),webkit:ua('chrome')||ua('safari'),safari:ua('safari')&&!ua('chrome'),mozilla:ua('mozilla')&&!ua('chrome')&&!ua('safari')};var getFaviconTag=function(){var links=document.getElementsByTagName('link');for(var i=0,len=links.length;i0)drawBubble(context,num,colour);refreshFavicon()};if(!src.match(/^data/)){faviconImage.crossOrigin='anonymous'}faviconImage.src=src};var updateTitle=function(num){if(options.fallback){if(num>0){document.title='('+num+') '+originalTitle}else{document.title=originalTitle}}};var drawBubble=function(context,num,colour){var len=(num+"").length-1;var width=options.width+(6*len);var w=16-width;var h=16-options.height;context.font=(browser.webkit?'bold ':'')+options.font;context.fillStyle=options.background;context.strokeStyle=options.background;context.lineWidth=1;context.fillRect(w,h,width-1,options.height);context.beginPath();context.moveTo(w-0.5,h+1);context.lineTo(w-0.5,15);context.stroke();context.beginPath();context.moveTo(15.5,h+1);context.lineTo(15.5,15);context.stroke();context.beginPath();context.strokeStyle="rgba(0,0,0,0.3)";context.moveTo(w,16);context.lineTo(15,16);context.stroke();context.fillStyle=options.colour;context.textAlign="right";context.textBaseline="top";context.fillText(num,15,browser.mozilla?7:6)};var refreshFavicon=function(){if(!getCanvas().getContext)return;setFaviconTag(getCanvas().toDataURL())};Tinycon.setOptions=function(custom){options={};for(var key in defaults){options[key]=custom.hasOwnProperty(key)?custom[key]:defaults[key]}return this};Tinycon.setImage=function(url){currentFavicon=url;refreshFavicon();return this};Tinycon.setBubble=function(num,colour){if(isNaN(parseFloat(num))||!isFinite(num))return log('Bubble must be a number');drawFavicon(num,colour);return this};Tinycon.reset=function(){Tinycon.setImage(originalFavicon)};Tinycon.setOptions(defaults);window.Tinycon=Tinycon})();
//$(window).load(function(){
//if(typeof window.google_num_ad_slots=='undefined'){
//noblck();
//};
//});