Skip to content

Instantly share code, notes, and snippets.

// Variation 1 > will show old banner
- JS
/* CUSTOM CODE */
var shouldShowBar = JSON.parse(localStorage.getItem('COOKIES_BAR__SHOW')) !== 'no' ;
if (shouldShowBar) {
setTimeout(function() {
document.getElementsByClassName('testCookiesBar')[0].remove();
var event = document.createEvent('Event');
@karimal
karimal / feed.vue
Last active June 25, 2018 20:21
Feed component for Vuejs
<template id="feed">
<div>
<div v-for="tweet in feed" :key="tweet.title" class="tweet">
<div class="avatarContainer">
<img :src="tweet.avatar" class="avatar" width="70" height="70">
</div>
<div class="tweetBody">
<div class="tweetHead">
<span class="author">
{{ tweet.author }}