Welcome to mirror list, hosted at ThFree Co, Russian Federation.

journal.js « js « static - github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fe6d4fe99d710dd9943eddfc4b13d15af9c4a22a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
new SmoothScroll('a#globalBackToTop');

Vue.component('parent',{
    props:['name','type'],
    data: function () {
        return {
            isHidden: true
        }
    },
    template: `
    <div class="a-block" :class="type" v-on:click="isHidden = !isHidden">
        {{ name }}
        <div class="nav-link-subitem" v-if="!isHidden">
            <slot></slot>
        </div>
    </div>
    `
});

$().ready(function(){
    var elems = $("table");
    elems.each(function(idx){
      $(this).addClass('table-striped');
      $(this).addClass('table');
      $(this).addClass('table-responsive');
      $(this).addClass('table-hover');
      });
});