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

footer_scripts.html « partials « layouts - github.com/mattstratton/castanet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bf2c464e03f4125690f0a85c3aea5861bcdf5eef (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<script src='{{ "js/castanet-min.js" | absURL }}'></script>
<script>
    $("#share").jsSocials({
        shares: [
      {
        share: "facebook",
        logo: "fab fa-facebook",
      },
      {
        share: "twitter",           // name of share
        label: "Tweet",             // share button text (optional)
        logo: "fab fa-twitter",
        // The twitter link can be based in short ("arresteddevops") or
        //  long form ("https://twitter.com/arresteddevops")
        // In long form we need to strip everything but the twitter handle
        //  for the 'via' parameter
        {{ if (isset .Site.Params.social "twitter" )}}
          {{ if gt (len (urls.Parse .Site.Params.social.twitter).Scheme) 0 }}
            via: "{{ trim ((urls.Parse .Site.Params.social.twitter).Path) "/" }}", // custom twitter sharing param 'via' (optional)
          {{ else }}
            via: "{{ .Site.Params.social.twitter }}", // custom twitter sharing param 'via' (optional)
          {{ end }}
        {{ end }}
        url: "{{ .Permalink }}",
        text: "{{ title .Title }}"
      },
      {
        share: "linkedin",
        logo: "fab fa-linkedin"
      },
      {
        share: "pinterest",
        logo: "fab fa-pinterest"
      }
    ],
    });
</script>

<script>
  $(document).ready(function() {

    $('.transcript').hide();
    $(".hide_transcript").hide();
    $(".hide_transcript").click(function () {
    $(".transcript").hide("fast");
    $(".show_transcript").show();
    $(".hide_transcript").hide();
   });

    $(".show_transcript").click(function () {
    $(".transcript").show(500);
    $(".hide_transcript").show();
    $(".show_transcript").hide();
   });

  });

</script>

<script>
  var player = new MediaElementPlayer('player2', {
      features: ['playpause', 'current', 'progress', 'duration', 'volume','speed'],
      defaultSpeed: 1.0,
      // other configuration elements
  });
</script>



{{ template "_internal/google_analytics_async.html" . }}