Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php wp_footer(); ?>
- <script type="text/javascript">
- (function () {
- function getCookie(cname) {
- var name = cname + "=";
- var decodedCookie = decodeURIComponent(document.cookie);
- var ca = decodedCookie.split(';');
- for(var i = 0; i <ca.length; i++) {
- var c = ca[i];
- while (c.charAt(0) == ' ') {
- c = c.substring(1);
- }
- if (c.indexOf(name) == 0) {
- return c.substring(name.length, c.length);
- }
- }
- return "";
- }
- var cookie = getCookie('mcdpf_search_data');
- if (cookie != '') {
- cookie = JSON.parse(cookie);
- var search = document.getElementById('parkos-search');
- if (search != null){
- search.dataset.arrival = cookie['sd'];
- search.dataset.departure = cookie['ed'];
- }
- }
- }());
- </script>
- <div id="parkos-widget-root"></div>
- <script type="text/javascript">
- (function () {
- var e = document.createElement('script');
- e.async = true;
- e.src = 'https://parkos.nl/widget/widget.js';
- document.getElementById('parkos-widget-root').appendChild(e);
- }());
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement