text: /*!
   * GRT Cookie Consent - jQuery Plugin
   * Version: 1.0
   * Author: GRT107
   *
   * Copyright (c) 2020 GRT107
   * Released under the MIT license
  */
  
  (function ($) {
  
  	$.fn.grtCookie = function (options) {
  
  		// Default options
  		var settings = $.extend({
  			textcolor: "#333",
  			background: "#fff",
  			buttonbackground: "#c40b14",
  			buttontextcolor: "#fff",
  			duration: 365
  		}, options);
  
  		// Check cookie
  		if (!(document.cookie.indexOf("acceptgrt=0") > -1)) {
  
  			// Text and Background color
  			this.css({
  				color: settings.textcolor,
  				background: settings.background,
  			});
  
  			// Button Colors
  			$('span.grt-cookie-button').css({
  				background: settings.buttonbackground,
  				color: settings.buttontextcolor
  			});
  
  			// Show message and calculate date
  			this.addClass("grt-cookie-active");
  			var d1 = new Date();
  			var days1 = settings.duration;
  			d1.setTime(d1.getTime() + days1 * 24 * 60 * 60 * 1000);
  			var expiredate = "expires=" + d1.toUTCString();
  			document.cookie = "acceptgrt=1;" + expiredate + ";path=/";
  
  			// On click accept button
  			$(".grt-cookie").on("click", function () {
  				$(this).remove();
  				document.cookie = "acceptgrt=0;" + expiredate + ";path=/";
  			});
  
  		} else {
  
  			this.remove();
  
  		}
  
  		return this;
  
  	};
  
  }(jQuery));
  