$(document).ready(function () {
$("#smallStar").webRating({
// image & color ratingCount: 5, // image & color imgSrc: "https://nakornchiangmaigames.html2wp.life/images/icons.png", xLocation: 126, yLocation: 46, width: 15, //in px height: 15, //in px autoParentWidth: true,
onClass: 'starOn', offClass: 'starOff', onClassHover: 'starOnHover', offClassHover: 'starOffHover', //click cookieEnable: false, cookiePrefix: "webRating_", maxClick: 1, onClick: function (clickScore, data) { //saveReviewData(clickScore, data);
var str = data; var res = str.split(","); var vote = getCookie("vote" + res[1]); console.log(clickScore + "->" + res[0] + res[1]); if (vote !== "") { alert("ท่านสามารถทำการโหวตได้เพียงครั้งเดียว ไม่สามารถโหวตซ้ำได้"); window.location.reload(); } else { $.post( "https://nakornchiangmaigames.html2wp.life/otop/score_vote", {score: clickScore, cid: res[0], key: res[1]}, function (data) { setCookie("vote" + res[1], "vote", 1, "/"); console.log(data); alert("โหวดเรียบร้อยแล้ว"); window.location.reload(); } ); } }, //Tooltip tp_showAverage: false, tp_showMaxScore: false, tp_showCount: false, prefixAverage: "Smiles:", updateScore: false });
$("#smallStar_viewonly").webRating({
// image & color ratingCount: 5, // image & color imgSrc: "https://nakornchiangmaigames.html2wp.life/images/icons.png", xLocation: 126, yLocation: 46, width: 15, //in px height: 15, //in px autoParentWidth: true,
onClass: 'starOn', offClass: 'starOff', onClassHover: 'starOnHover', offClassHover: 'starOffHover', //click cookieEnable: false, cookiePrefix: "webRating_", maxClick: 0, onClick: function (clickScore, data) { //saveReviewData(clickScore, data); var str = data; var res = str.split(","); console.log(clickScore + "->" + res[0] + res[1]); $.post( "https://nakornchiangmaigames.html2wp.life/otop/score_vote", {score: clickScore, cid: res[0], key: res[1]}, function (data) { console.log(data); } ); }, //Tooltip tp_showAverage: true, tp_showMaxScore: false, tp_showCount: false, prefixAverage: "", updateScore: true }); $("#smallStar_viewonly2").webRating({
// image & color ratingCount: 5, // image & color imgSrc: "https://nakornchiangmaigames.html2wp.life/images/icons.png", xLocation: 126, yLocation: 46, width: 15, //in px height: 15, //in px autoParentWidth: true,
onClass: 'starOn', offClass: 'starOff', onClassHover: 'starOnHover', offClassHover: 'starOffHover', //click cookieEnable: false, cookiePrefix: "webRating_", maxClick: 0, onClick: function (clickScore, data) { //saveReviewData(clickScore, data); var str = data; var res = str.split(","); console.log(clickScore + "->" + res[0] + res[1]); $.post( "https://nakornchiangmaigames.html2wp.life/otop/score_vote", {score: clickScore, cid: res[0], key: res[1]}, function (data) { console.log(data); } ); }, //Tooltip tp_showAverage: true, tp_showMaxScore: false, tp_showCount: false, prefixAverage: "", updateScore: true });
});
jQuery(document).ready(function ($) { $(".thumbs a").click(function (e) { //alert($(this).parent().index()); //alert($('img', this).attr('title'));
var div = document.getElementById('curNumber'); div.innerHTML = $('img', this).attr('title');
e.preventDefault(); $(".thumbs").removeClass("select"); $(this).parent().addClass("select"); $imgURL = $(this).attr("href"); $(".gallery-big-pic .mainGallery") .fadeOut(100, function () { $(".gallery-big-pic .mainGallery").one("load", function () { $(".gallery-big-pic .mainGallery").fadeIn(100); }).attr("src", $imgURL);
});
});
});
function formsubmitsearch() {
$("#form_submit").submit();
}
$('#slide_travel_image').cycle({ fx: 'scrollHorz', // choose your transition type, ex: fade, scrollUp, shuffle, etc..., next: '#slide_travel_image_right', prev: '#slide_travel_image_left', timeout: 0 });
เริ่มจากประตูเชียงใหม่ไปจนตลอดสายของถนนวัวลาย ถนนวัวลายมีประจำทุกวันเสาร์ เวลา 16.00 – 22.00 น. มีการจำหน่ายสินค้าของที่ระลึก เสื้อผ้า เครื่องประดับ สินค้าหัตถกรรม เครื่องเงินอันเป็นเอกลักษณ์ ของชุมชนวัวลายแห่งนี้
ที่อยู่: ถนนวัวลาย ตำบล พระสิงห์ อำเภอเมืองเชียงใหม่ เชียงใหม่ 50100














