GAS-PKNS Treasure Hunt

Flag off, Treasure Hunt Gabungan Anak Syarikat (GAS) PKNS.

7 November 2015, Shah Alam (SACC) – Awana Kijal, Terengganu.

var lightbox_transition = ‘elastic’;
var lightbox_speed = 800;
var lightbox_fadeOut = 300;
var lightbox_title = false;
var lightbox_scalePhotos = true;
var lightbox_scrolling = false;
var lightbox_opacity = 0.201;
var lightbox_open = false;
var lightbox_returnFocus = true;
var lightbox_trapFocus = true;
var lightbox_fastIframe = true;
var lightbox_preloading = true;
var lightbox_overlayClose = true;
var lightbox_escKey = false;
var lightbox_arrowKey = false;
var lightbox_loop = true;
var lightbox_closeButton = true;
var lightbox_previous = “previous”;
var lightbox_next = “next”;
var lightbox_close = “close”;
var lightbox_html = false;
var lightbox_photo = false;
var lightbox_width = ”;
var lightbox_height = ”;
var lightbox_innerWidth = ‘false’;
var lightbox_innerHeight = ‘false’;
var lightbox_initialWidth = ‘300’;
var lightbox_initialHeight = ‘100’;

var maxwidth=jQuery(window).width();
if(maxwidth>900){maxwidth=900;}
var lightbox_maxWidth = maxwidth;
var lightbox_maxHeight = 700;

var lightbox_slideshow = false;
var lightbox_slideshowSpeed = 2500;
var lightbox_slideshowAuto = true;
var lightbox_slideshowStart = “start slideshow”;
var lightbox_slideshowStop = “stop slideshow”;
var lightbox_fixed = true;
jQuery(document).ready(function(){
jQuery(‘.huge_it_gallery_like_cont_13752 .huge_it_like_count’).each(function(){
if(jQuery(this).text()3||jQuery(this).text().length>4||jQuery(this).text().length>5)&&jQuery(this).text().length6||jQuery(this).text().length>7||jQuery(this).text().length>8)&&jQuery(this).text().length9||jQuery(this).text().length>10||jQuery(this).text().length>11){
jQuery(this).text(function (_,txt)
{
return txt.slice(0, -9)+’b’
});
}
})
jQuery(‘.huge_it_gallery_like_cont_13752 .huge_it_dislike_count’).each(function(){
if(jQuery(this).text()3||jQuery(this).text().length>4||jQuery(this).text().length>5)&&jQuery(this).text().length6||jQuery(this).text().length>7||jQuery(this).text().length>8)&&jQuery(this).text().length9||jQuery(this).text().length>10||jQuery(this).text().length>11){
jQuery(this).text(function (_,txt)
{
return txt.slice(0, -9)+’b’
});
}
})
var thumbLike;
jQuery(‘.huge_it_gallery_like_cont_13752 .huge_it_like_thumb’).each(function(){
thumbLike=jQuery(this).attr(‘data-status’);
if(thumbLike==’liked’){
jQuery(this).parent().find(‘.like_thumb_up’).addClass(‘like_thumb_active’);
jQuery(this).parent().addClass(‘like_font_active’);
}

})
var thumbDislike;
jQuery(‘.huge_it_gallery_like_cont_13752 .huge_it_dislike_thumb’).each(function(){
thumbDislike=jQuery(this).attr(‘data-status’);
if(thumbDislike==’disliked’){
jQuery(this).parent().find(‘.dislike_thumb_down’).addClass(‘like_thumb_active’);
jQuery(this).parent().addClass(‘like_font_active’);
}

})
function randomString(length, chars) {
var result = ”;
for (var i = length; i > 0; –i) result += chars[Math.round(Math.random() * (chars.length – 1))];
return result;
}
jQuery(document).on(“click tap”,”.huge_it_gallery_like_cont_13752 .huge_it_gallery_like_wrapper”,function(){
var image_id=jQuery(this).parent().find(‘.huge_it_like_count’).attr(‘id’);
var status=jQuery(“span.huge_it_like_thumb[id='”+image_id+”‘]”).attr(‘data-status’);
function setCookie(name, value, expires, path, domain, secure) {
document.cookie = name + “=” + escape(value) +
((expires) ? “; expires=” + expires : “”) +
((path) ? “; path=” + path : “”) +
((domain) ? “; domain=” + domain : “”) +
((secure) ? “; secure” : “”);
}
function getCookie(name) {
var cookie = ” ” + document.cookie;
var search = ” ” + name + “=”;
var setStr = null;
var offset = 0;
var end = 0;
if (cookie.length > 0) {
offset = cookie.indexOf(search);
if (offset != -1) {
offset += search.length;
end = cookie.indexOf(“;”, offset)
if (end == -1) {
end = cookie.length;
}
setStr = unescape(cookie.substring(offset, end));
}
}
return(setStr);
}
function delCookie(name) {
document.cookie = name + “=” + “; expires=Thu, 01 Jan 1970 00:00:01 GMT”;
}
var resStatus=jQuery(this).parent().find(“span.huge_it_like_thumb[id='”+image_id+”‘]”).attr(‘data-status’);
var resStatus2=jQuery(“.huge_it_dislike_thumb[id='”+image_id+”‘]”).attr(‘data-status’);
//alert(resStatus2);
/////////////////////////////
if(resStatus2==undefined){
if(resStatus==’unliked’){
date = new Date();
date.setHours(date.getFullYear() + 1);
var cookie=setCookie(‘Like_’+image_id, randomString(10, ‘0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ’), date.toUTCString());

}else if(resStatus==’liked’){
var cookie=getCookie(‘Like_’+image_id);
}
}else{
if(resStatus==’unliked’&&resStatus2==’unliked’){
date = new Date();
date.setHours(date.getFullYear() + 1);
var cookie=setCookie(‘Like_’+image_id, randomString(10, ‘0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ’), date.toUTCString());

}else if(resStatus==’unliked’&&resStatus2==’disliked’){
date = new Date();
date.setHours(date.getFullYear() + 1);
var newCookie=getCookie(‘Dislike_’+image_id);
var cookie=setCookie(‘Like_’+image_id, newCookie , date.toUTCString());
delCookie(‘Dislike_’+image_id);
}else if(resStatus==’liked’){
var cookie=getCookie(‘Like_’+image_id);
}
}

var data={

action:’huge_it_video_gallery_ajax’,

task:’like’,

image_id:image_id,

cook:getCookie(‘Like_’+image_id),
status:status

}

jQuery.post(‘http://sacc.com.my/wp-admin/admin-ajax.php’,data,function(response){

if(response){

response=JSON.parse(response);
if(response.like){
var likeNumber=response.like;
if((likeNumber.length>3||likeNumber.length>4||likeNumber.length>5)&&likeNumber.length6||likeNumber.length>7||likeNumber.length>8)&&likeNumber.length9||likeNumber.length>10||likeNumber.length>11){

likeNumber=likeNumber.slice(0, -9)+’b’;

}
response.like=likeNumber;
}
if(response.dislike){
var dislikeNumber=response.dislike;
if((dislikeNumber.length>3||dislikeNumber.length>4||dislikeNumber.length>5)&&dislikeNumber.length6||dislikeNumber.length>7||dislikeNumber.length>8)&&dislikeNumber.length9||dislikeNumber.length>10||dislikeNumber.length>11){

dislikeNumber=dislikeNumber.slice(0, -9)+’b’;

}
response.dislike=dislikeNumber;
}

if(response.like<0)response.like=0;
jQuery("span.huge_it_like_count[id='"+image_id+"']").text(response viagra 100 mg 4 comprim.like);
jQuery(“span.huge_it_dislike_count[id='”+image_id+”‘]”).text(response.dislike);
if(response.dislike 0) {
offset = cookie.indexOf(search);
if (offset != -1) {
offset += search.length;
end = cookie.indexOf(“;”, offset)
if (end == -1) {
end = cookie.length;
}
setStr = unescape(cookie.substring(offset, end));
}
}
return(setStr);
}
function delCookie(name) {
document.cookie = name + “=” + “; expires=Thu, 01 Jan 1970 00:00:01 GMT”;
}
var resStatus=jQuery(this).parent().find(“span.huge_it_dislike_thumb[id='”+image_id+”‘]”).attr(‘data-status’);
var resStatus2=jQuery(“.huge_it_like_thumb[id='”+image_id+”‘]”).attr(‘data-status’);

if(resStatus==’unliked’ && resStatus2==’unliked’){
date = new Date();
date.setHours(date.getFullYear() + 1);
var cook=setCookie(‘Dislike_’+image_id, randomString(10, ‘0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ’), date.toUTCString());

}else if(resStatus==’unliked’ && resStatus2==’liked’){
date = new Date();
date.setHours(date.getFullYear() + 1);
var newCookie=getCookie(‘Like_’+image_id);
var cook=setCookie(‘Dislike_’+image_id, newCookie , date.toUTCString());
delCookie(‘Like_’+image_id);
}else if(resStatus==’disliked’){
var cook=getCookie(‘Dislike_’+image_id);
}

var data={

action:’huge_it_video_gallery_ajax’,

task:’dislike’,

image_id:image_id,
cook:getCookie(‘Dislike_’+image_id)

}

jQuery.post(‘http://sacc.com.my/wp-admin/admin-ajax.php’,data,function(response){

if(response){

response=JSON.parse(response);
if(response.like){
var likeNumber=response.like;
if((likeNumber.length>3||likeNumber.length>4||likeNumber.length>5)&&likeNumber.length6||likeNumber.length>7||likeNumber.length>8)&&likeNumber.length9||likeNumber.length>10||likeNumber.length>11){

likeNumber=likeNumber.slice(0, -9)+’b’;

}
response.like=likeNumber;
}
if(response.dislike){
var dislikeNumber=response.dislike;
if((dislikeNumber.length>3||dislikeNumber.length>4||dislikeNumber.length>5)&&dislikeNumber.length6||dislikeNumber.length>7||dislikeNumber.length>8)&&dislikeNumber.length9||dislikeNumber.length>10||dislikeNumber.length>11){

dislikeNumber=dislikeNumber.slice(0, -9)+’b’;

}
response.dislike=dislikeNumber;
}
if(response.like<0)response.like=0;
jQuery("span.huge_it_like_count[id='"+image_id+"']").text(response.like);
if(response.dislike<0)response.dislike=0;
jQuery("span.huge_it_dislike_count[id='"+image_id+"']").text(response.dislike);
if(response.statLike=='Liked'){
jQuery("span.huge_it_like_thumb[id='"+image_id+"']").parent().find('.like_thumb_up').addClass('like_thumb_active');
jQuery("span.huge_it_like_thumb[id='"+image_id+"']").parent().addClass('like_font_active');
jQuery("span.huge_it_like_thumb[id='"+image_id+"']").attr('data-status','liked')
}else if(response.statLike=='Like'){
jQuery("span.huge_it_like_thumb[id='"+image_id+"']").parent().find('.like_thumb_up').removeClass('like_thumb_active').addClass('like_thumb_up');
jQuery("span.huge_it_like_thumb[id='"+image_id+"']").parent().removeClass('like_font_active');
jQuery("span.huge_it_like_thumb[id='"+image_id+"']").attr('data-status','unliked')
delCookie('Like_'+image_id);
}
if(response.statDislike=='Disliked'){
jQuery("span.huge_it_dislike_thumb[id='"+image_id+"']").parent().find('.dislike_thumb_down').addClass('like_thumb_active');
jQuery("span.huge_it_dislike_thumb[id='"+image_id+"']").parent().addClass('like_font_active');
jQuery("span.huge_it_dislike_thumb[id='"+image_id+"']").attr('data-status','disliked');
}else if(response.statDislike=='Dislike'){
jQuery("span.huge_it_dislike_thumb[id='"+image_id+"']").parent().find('.dislike_thumb_down').removeClass('like_thumb_active').addClass('dislike_thumb_down');
jQuery("span.huge_it_dislike_thumb[id='"+image_id+"']").parent().removeClass('like_font_active');
jQuery("span.huge_it_dislike_thumb[id='"+image_id+"']").attr('data-status','unliked');
delCookie('Dislike_'+image_id);
}

}

})

return false;

})

});

var lightbox_top = false;
var lightbox_bottom = false;
var lightbox_left = false;
var lightbox_right = false;

var lightbox_reposition = false;
var lightbox_retinaImage = true;
var lightbox_retinaUrl = false;
var lightbox_retinaSuffix = "@2x.$1";

jQuery(document).ready(function(){
jQuery("#huge_it_gallery_content_13 a[href$='.jpg'], #huge_it_gallery_content_13 a[href$='.jpeg'], #huge_it_gallery_content_13 a[href$='.png'], #huge_it_gallery_content_13 a[href$='.gif']").addClass('gallery_group13');

jQuery(".gallery_group13").gicolorbox({rel:'gallery_group13'});
jQuery(".youtube").gicolorbox({iframe:true, innerWidth:640, innerHeight:390});
jQuery(".vimeo").gicolorbox({iframe:true, innerWidth:640, innerHeight:390});
jQuery(".iframe").gicolorbox({iframe:true, width:"80%", height:"80%"});
jQuery(".inline").gicolorbox({inline:true, width:"50%"});
jQuery(".callbacks").gicolorbox({
onOpen:function(){ alert('onOpen: gicolorbox is about to open'); },
onLoad:function(){ alert('onLoad: gicolorbox has started to load the targeted content'); },
onComplete:function(){ alert('onComplete: gicolorbox has displayed the loaded content'); },
onCleanup:function(){ alert('onCleanup: gicolorbox has begun the close process'); },
onClosed:function(){ alert('onClosed: gicolorbox has completely closed'); }
});

/******************Clone bug update***************************/
var groups = 13;
var group_count_slider = 0;
var i = 1;
var group_count_slider_clone = 0;

jQuery(".slider-content").each(function(){
group_count_slider++;
});

jQuery(".gallery_group"+i).gicolorbox({rel:'gallery_group'+i});
//jQuery(".group1").gicolorbox({rel:'group1'});
for(var i = 1; i <= group_count_slider; i++){
jQuery(".gallery_group_"+groups+"_"+i).gicolorbox({rel:'gallery_group_'+groups+"_"+i});
jQuery("#main-slider_13 .clone a").removeClass();
}
/*************************************************************/

jQuery('.non-retina').gicolorbox({rel:'group5', transition:'none'})
jQuery('.retina').gicolorbox({rel:'group5', transition:'none', retinaImage:true, retinaUrl:true});

jQuery("#click").click(function(){
jQuery('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
return false;
});
});


<!–

<script src="”>

<script src="”>
–>

.element_13 {
width: 100%;
max-width:275px;
margin:0px 0px 10px 0px;
border:0px solid #eeeeee;
border-radius:3px;
outline:none;
overflow:hidden;
}

.element_13 .image-block_13 {
position:relative;
width: 100%;
max-width:275px;
}

.element_13 .image-block_13 a {display:block;}

.element_13 .image-block_13 img {
width: 100%;
max-width:275px !important;
height:auto;
display:block;
border-radius: 0px !important;
box-shadow: 0 0px 0px rgba(0, 0, 0, 0) !important;
}

.element_13 .image-block_13 img:hover {
cursor: -webkit-zoom-in; cursor: -moz-zoom-in;
}

.element_13 .image-block_13 .play-icon {
position:absolute;
top:0px;
left:0px;
width:100%;
height:100%;

}

.element_13 .image-block_13 .play-icon.youtube-icon {background:url(http://sacc.com.my/wp-content/plugins/gallery-images/Front_end/../images/play.youtube.png) center center no-repeat;}

.element_13 .image-block_13 .play-icon.vimeo-icon {background:url(http://sacc.com.my/wp-content/plugins/gallery-images/Front_end/../images/play.vimeo.png) center center no-repeat;}

.element_13 .title-block_13 {
position:absolute;

left:0px;
width:100%;
padding-top:5px;
height:30px;
bottom:-35px;
background: rgba(0,0,0,0.8) !important;
-webkit-transition: bottom 0.3s ease-out 0.1s;
-moz-transition: bottom 0.3s ease-out 0.1s;
-o-transition: bottom 0.3s ease-out 0.1s;
transition: bottom 0.3s ease-out 0.1s;
}

.element_13:hover .title-block_13 {bottom:0px;}

.element_13 .title-block_13 a, .element_13 .title-block_13 a:link, .element_13 .title-block_13 a:visited {
position:relative;
margin:0px;
padding:0px 1% 0px 2%;
width:97%;
text-decoration:none;
text-overflow: ellipsis;
overflow: hidden;
white-space:nowrap;
z-index:20;
font-size: 16px;
color:#0074A2;
font-weight:normal;
}

.element_13 .title-block_13 a:hover, .element_13 .title-block_13 a:focus, .element_13 .title-block_13 a:active {
color:#2EA2CD;
text-decoration:none;
}
.load_more4 {
margin: 10px 0;
position:relative;
text-align:center;

width:100%;

}

.load_more_button4 {
border-radius: 10px;
display:inline-block;
padding:5px 15px;
font-size:16px !important;;
color:#FF0D0D !important;;
background:#5CADFF !important;
cursor:pointer;

}
.load_more_button4:hover{
color:#FF4040 !important;
background:#99C5FF !important;
}

.loading4 {
display:none;
}
.paginate4{
font-size:19px !important;
color:#FF2C2C !important;
text-align: center;
margin-top: 25px;
}
.paginate4 a{
border-bottom: none !important;
}
.icon-style4{
font-size: 21px !important;
color:#B82020 !important;
}
.clear{
clear:both;
}

jQuery(function($){
var $paramssld = []; // for lighbox container correctly viewing in small sizes
$paramssld[‘ht_view6_width’] = 275;
var defaultBlockWidth=$paramssld[‘ht_view6_width’]+20+$paramssld[‘ht_view6_width’]*2;

var $container = $(‘.hugeitmicro’);
var $container = jQuery(‘#huge_it_gallery_container_moving_13’);

// add randomish size classes
$container.find(‘.element_13’).each(function(){
var $this = jQuery(this),
number = parseInt( $this.find(‘.number’).text(), 10 );
//alert(number);
if ( number % 7 % 2 === 1 ) {
$this.addClass(‘width2’);
}
if ( number % 3 === 0 ) {
$this.addClass(‘height2’);
}
});
reSortImages();
function reSortImages() {// for lighbox container correctly viewing in small sizes
$paramssld[‘ht_view6_width’] = (275 > jQuery(window).width())?jQuery(window).width():275;
$container.hugeitmicro({
itemSelector : ‘.element_13’,
masonry : {
columnWidth : $paramssld[‘ht_view6_width’]+10
},
masonryHorizontal : {
rowHeight: ‘auto’
},
cellsByRow : {
columnWidth : $paramssld[‘ht_view6_width’],
rowHeight : ‘auto’
},
cellsByColumn : {
columnWidth : $paramssld[‘ht_view6_width’],
rowHeight : ‘auto’
},
getSortData : {
symbol : function( $elem ) {
return $elem.attr(‘data-symbol’);
},
category : function( $elem ) {
return $elem.attr(‘data-category’);
},
number : function( $elem ) {
return parseInt( $elem.find(‘.number’).text(), 10 );
},
weight : function( $elem ) {
return parseFloat( $elem.find(‘.weight’).text().replace( /[\(\)]/g, ”) );
},
name : function ( $elem ) {
return $elem.find(‘.name’).text();
}
}
});
}

var $optionSets = jQuery(‘#huge_it_gallery_options .option-set’),
$optionLinks = $optionSets.find(‘a’);

$optionLinks.click(function(){
var $this = jQuery(this);

if ( $this.hasClass(‘selected’) ) {
return false;
}
var $optionSet = $this.parents(‘.option-set’);
$optionSet.find(‘.selected’).removeClass(‘selected’);
$this.addClass(‘selected’);

var options = {},
key = $optionSet.attr(‘data-option-key’),
value = $this.attr(‘data-option-value’);

value = value === ‘false’ ? false : value;
options[ key ] = value;
if ( key === ‘layoutMode’ && typeof changeLayoutMode === ‘function’ ) {

changeLayoutMode( $this, options )
} else {

$container.hugeitmicro( options );
}

return false;
});

jQuery(window).resize(function(){
reSortImages();
});

var isHorizontal = false;
function changeLayoutMode( $link, options ) {
var wasHorizontal = isHorizontal;
isHorizontal = $link.hasClass(‘horizontal’);

if ( wasHorizontal !== isHorizontal ) {

var style = isHorizontal ?
{ height: ‘100%’, width: $container.width() } :
{ width: ‘auto’ };

$container.filter(‘:animated’).stop();

$container.addClass(‘no-transition’).css( style );
setTimeout(function(){
$container.removeClass(‘no-transition’).hugeitmicro( options );
}, 100 )
} else {
$container.hugeitmicro( options );
}
}

var $sortBy = jQuery(‘#sort-by’);
jQuery(‘#shuffle a’).click(function(){
$container.hugeitmicro(‘shuffle’);
$sortBy.find(‘.selected’).removeClass(‘selected’);
$sortBy.find(‘[data-option-value=”random”]’).addClass(‘selected’);
return false;
});

jQuery(window).load(function(){
$container.hugeitmicro(‘reLayout’);
});
});



Comments are closed.