更新 'app/assets/javascripts/cookies.js'

This commit is contained in:
2023-02-18 15:04:48 +08:00
parent 12a0d34f75
commit afb9e4bdcd

View File

@@ -15,6 +15,11 @@
// with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
$(document).on('turbolinks:load', function(){
//create a cookie that lasts 1 year
var cookieDate = new Date();
cookieDate.setFullYear(cookieDate.getFullYear() + 1); //1 year from now
document.cookie = "cookie_consented=true; path=/; expires=" + cookieDate.toUTCString() + ";"
$("#cookies-agree-button").click(function() {
//create a cookie that lasts 1 year
var cookieDate = new Date();