// obtain plugin var cc = initCookieConsent(); // run plugin with your configuration cc.run({ current_lang: 'th', // en/th autoclear_cookies: true, // default: false page_scripts: true, // default: false cookie_path: 'skill_lab', gui_options: { consent_modal: { layout: 'box', // box/cloud/bar position: 'bottom left', // bottom/middle/top + left/right/center transition: 'slide', // zoom/slide swap_buttons: false, // enable to invert buttons }, settings_modal: { layout: 'box', // box/bar position: 'left', // left/right transition: 'slide', // zoom/slide }, }, onFirstAction: function ( user_preferences, cookie, ) { // callback triggered only once }, onAccept: function (cookie) { if(!cc.allowedCategory('analytics')){ var domainValue = ".mahidol.ac.th"; var pathValue = 'skill_lab'; document.cookie = '_ga=; path=/'+ pathValue + '; domain='+ domainValue + '; expires=' + new Date(0).toUTCString(); document.cookie = '_gat_gtag_UA_123348614_3=; path=/'+ pathValue + '; domain='+ domainValue + '; expires=' + new Date(0).toUTCString(); document.cookie = '_gid=; path=/'+ pathValue + '; domain='+ domainValue + '; expires=' + new Date(0).toUTCString(); /* var domainValue_2 = ".freevisitorcounters.com"; var pathValue_2 = ''; document.cookie = '__utmz=; path=/'+ pathValue_2 + '; domain='+ domainValue_2 + '; expires=' + new Date(0).toUTCString(); document.cookie = '__utmc=; path=/'+ pathValue_2 + '; domain='+ domainValue_2 + '; expires=' + new Date(0).toUTCString(); document.cookie = '__utmb=; path=/'+ pathValue_2 + '; domain='+ domainValue_2 + '; expires=' + new Date(0).toUTCString(); document.cookie = '__utma=; path=/'+ pathValue_2 + '; domain='+ domainValue_2 + '; expires=' + new Date(0).toUTCString(); */ } }, onChange: function ( cookie, changed_preferences, ) { if(!cc.allowedCategory('analytics')){ sessionStorage.removeItem('_ga'); sessionStorage.removeItem('_gat_gtag_UA_123348614_3'); sessionStorage.removeItem('_gid'); /* sessionStorage.removeItem('__utmz'); sessionStorage.removeItem('__utmc'); sessionStorage.removeItem('__utmb'); sessionStorage.removeItem('__utma'); */ } }, languages: { th: { consent_modal: { title: 'ประกาศความเป็นส่วนตัว', description: 'เว็บไซต์นี้มีการบันทึกข้อมูลของคุณเพื่อเพิ่มประสิทธิภาพการทำงานของเว็บไซต์ และเพิ่มประสบการณ์ที่ดีในการใช้งานเว็บไซต์
ท่านสามารถเลือก ตั้งค่าความเป็นส่วนตัว
หรืออ่านรายละเอียดเพิ่มเติมได้ที่ ประกาศความเป็นส่วนตัว', primary_btn: { text: 'ยินยอม', role: 'accept_all', // 'accept_selected' or 'accept_all' }, secondary_btn: { text: 'ไม่ยินยอม', role: 'accept_necessary', // 'settings' or 'accept_necessary' }, }, settings_modal: { title: 'ตั้งค่าความเป็นส่วนตัว', save_settings_btn: 'ยืนยันตัวเลือกของฉัน', accept_all_btn: 'ยินยอมทั้งหมด', reject_all_btn: 'ไม่ยินยอมทั้งหมด', close_btn_label: 'ปิด', cookie_table_headers: [ { col1: 'คุกกี้' }, { col2: 'โดเมน' }, { col3: 'เวลา' }, { col4: 'รายละเอียด' }, ], blocks: [ { title: 'ประกาศความเป็นส่วนตัว 📢', description: "เว็บไซต์ของคณะแพทยศาสตร์โรงพยาบาลรามาธิบดี มหาวิทยาลัยมหิดลใช้คุกกี้เพื่อจำแนกผู้ใช้งานแต่ละคน โดยทำหน้าที่หลัก คือ ประมวลทางสถิติ ตลอดจนลักษณะเฉพาะของกลุ่มผู้ใช้บริการนั้น ๆ ซึ่งข้อมูลดังกล่าวจะนำมาใช้ในการวิเคราะห์รูปแบบพฤติกรรมของผู้ใช้บริการ และคณะแพทยศาสตร์โรงพยาบาลรามาธิบดี มหาวิทยาลัยมหิดล จะนำผลลัพธ์ดังกล่าวไปใช้ในการปรับปรุงเว็บไซต์ให้ตอบสนองความต้องการ และการใช้งานของผู้ใช้บริการให้ดียิ่งขึ้น อย่างไรก็ตามข้อมูลที่ได้และใช้ประมวลผลนั้นจะไม่มีการระบุชื่อ หรือบ่งบอกความเป็นตัวตนของผู้ใช้บริการแต่อย่างใด อีกทั้งไม่มีการเก็บข้อมูลส่วนบุคคล เช่น ชื่อ นามสกุล อีเมล เป็นต้น และใช้เป็นเพียงข้อมูลทางสถิติเท่านั้น ซึ่งจะช่วยให้คณะแพทยศาสตร์โรงพยาบาลรามาธิบดี มหาวิทยาลัยมหิดล สามารถมอบประสบการณ์ที่ดีในการใช้งานเว็บไซต์สำหรับคุณ และช่วยให้สามารถปรับปรุงเว็บไซต์ให้มีประสิทธิภาพยิ่งขึ้นได้ในเวลาเดียวกัน ทั้งนี้คุณสามารถเลือกตัวเลือกในการใช้งานคุกกี้ อ่านรายละเอียดเพิ่มเติมได้ที่ ประกาศความเป็นส่วนตัว", }, // COOKIE INFORMATION necessary_cookie { title: 'คุกกี้พื้นฐานที่จำเป็น', description: 'คุกกี้พื้นฐานที่จำเป็น เพื่อช่วยให้การทำงานหลักของเว็บไซต์ใช้งานได้ รวมถึงการเข้าถึงพื้นที่ที่ปลอดภัยต่าง ๆ ของเว็บไซต์ หากไม่มีคุกกี้นี้เว็บไซต์จะไม่สามารถทำงานได้อย่างเหมาะสม และจะใช้งานได้โดยการตั้งค่าเริ่มต้น โดยไม่สามารถปิดการใช้งานได้', toggle: { value: 'necessary', enabled: true, readonly: true }, cookie_table: [ { col1: 'has_js', col2: 'rama.mahidol.ac.th', col3: 'session', col4: 'คุกกี้นี้ตั้งค่าโดย ผู้พัฒนาเว็บไซต์ เพื่อระบุว่าตัวตนการเข้าสู่ระบบของผู้เข้าใช้งาน', }, ], }, // COOKIE INFORMATION analytics_cookie { title: 'คุกกี้ในส่วนวิเคราะห์', description: 'คุกกี้เพื่อการวิเคราะห์/เพื่อประสิทธิภาพ คุกกี้เหล่านี้ช่วยให้เราจดจำและนับจำนวนผู้เข้าชมเว็บไซต์และทราบว่าผู้เข้าชมไปยังหน้าต่าง ๆ ในเว็บไซต์อย่างไร สิ่งนี้จะช่วยให้เราปรับปรุงการทำงานของเว็บไซต์ให้ดียิ่งขึ้นได้ในอนาคต ตัวอย่างเช่น ทำให้ผู้ใช้งานพบสิ่งที่ต้องการเข้าถึงได้ง่ายขึ้น', toggle: { value: 'analytics', enabled: false, readonly: false }, cookie_table: [ { col1: '_ga', col2: 'google.com', col3: '2 ปี', col4: 'คุกกี้ _ga ติดตั้งโดย Google Analytics จะคำนวณข้อมูลผู้เข้าชม เซสชัน และยังติดตามการใช้งานไซต์สำหรับรายงานการวิเคราะห์ของเว็บไซต์ คุกกี้เก็บข้อมูล', }, { col1: '_gid', col2: 'google.com', col3: '1 วัน', col4: 'คุกกี้ _gid ติดตั้งโดย Google Analytics จะเก็บข้อมูลการใช้งานเว็บไซต์อย่างไร ในขณะเดียวกันก็สร้างรายงานการวิเคราะห์ประสิทธิภาพของเว็บไซต์ด้วย ข้อมูลบางส่วนที่เก็บรวบรวม ได้แก่ จำนวนผู้เข้าชม แหล่งที่มา และหน้าที่เข้าชมโดยไม่ระบุชื่อ', }, { col1: '_gat', col2: 'google.com', col3: '1 นาที', col4: 'คุกกี้ _gid ติดตั้งโดย Google Universal Analytics เพื่อจำกัดอัตราคำขอและจำกัดการรวบรวมข้อมูลบนไซต์ที่มีการเข้าชมสูง', }, ], }, // COOKIE INFORMATION targeting_cookie /*{ title: 'คุกกี้ในส่วนการตลาด', description: 'คุกกี้ในส่วนการตลาด ใช้เพื่อติดตามพฤติกรรมผู้เข้าชมเว็บไซต์เพื่อแสดงโฆษณาที่เหมาะสมสำหรับผู้ใช้งานแต่ละรายและเพื่อเพิ่มประสิทธิผลการโฆษณาสำหรับผู้เผยแพร่และผู้โฆษณาสำหรับบุคคลที่สาม', toggle: { value: 'targeting', enabled: false, readonly: false } },*/ ], }, }, en: { consent_modal: { title: 'We use cookies!', description: 'Hi, this website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. The latter will be set only after consent. ', primary_btn: { text: 'Accept all', role: 'accept_all', // 'accept_selected' or 'accept_all' }, secondary_btn: { text: 'Reject all', role: 'accept_necessary', // 'settings' or 'accept_necessary' }, }, settings_modal: { title: 'Cookie preferences', save_settings_btn: 'Save settings', accept_all_btn: 'Accept all', reject_all_btn: 'Reject all', close_btn_label: 'Close', cookie_table_headers: [ { col1: 'Name' }, { col2: 'Domain' }, { col3: 'Expiration' }, { col4: 'Description' }, ], blocks: [ { title: 'Cookie usage 📢', description: 'I use cookies to ensure the basic functionalities of the website and to enhance your online experience. You can choose for each category to opt-in/out whenever you want. For more details relative to cookies and other sensitive data, please read the full privacy policy.', }, // COOKIE INFORMATION { title: 'More information', description: 'For any queries in relation to our policy on cookies and your choices, please contact us.', }, ], }, }, }, });