mirror of https://github.com/interlegis/sapl.git
3 changed files with 20 additions and 17 deletions
@ -0,0 +1,16 @@ |
|||
import jQuery from 'jquery' |
|||
|
|||
window.getCookie = function(name) { |
|||
var cookieValue = null; |
|||
if (document.cookie && document.cookie !== '') { |
|||
var cookies = document.cookie.split(';'); |
|||
for (var i = 0; i < cookies.length; i++) { |
|||
var cookie = jQuery.trim(cookies[i]); |
|||
if (cookie.substring(0, name.length + 1) === (name + '=')) { |
|||
cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); |
|||
break; |
|||
} |
|||
} |
|||
} |
|||
return cookieValue; |
|||
} |
|||
@ -1 +1,4 @@ |
|||
window.$ = window.jQuery = require("jquery"); |
|||
import jQuery from 'jquery' |
|||
import './functions' |
|||
|
|||
window.$ = window.jQuery = jQuery |
|||
|
|||
Loading…
Reference in new issue