6
6
< div class ="panel-container ">
7
7
{% if terms > 0 %}
8
8
< div class ="panel-left content ">
9
- {% else %}
10
- < div class ="content panel-singular ">
11
- {% endif %}
12
- < article class ="post " itemscope itemtype ="http://schema.org/BlogPosting ">
9
+ {% else %}
10
+ < div class ="content panel-singular ">
11
+ {% endif %}
12
+ < article class ="post " itemscope itemtype ="http://schema.org/BlogPosting ">
13
13
14
- < header class ="post-header ">
15
- < h1 class ="post-title " itemprop ="name headline "> {{ page.title }}</ h1 >
16
- < p class ="post-meta "> < time datetime ="{{ page.date | date_to_xmlschema }} " itemprop ="datePublished "> {{ page.date | date: "%b %-d, %Y" }}</ time > {% if page.author %} • < span itemprop ="author " itemscope itemtype ="http://schema.org/Person "> < span itemprop ="name "> {{ page.author }}</ span > </ span > {% endif %}</ p >
14
+ < header class ="post-header ">
15
+ < h1 class ="post-title " itemprop ="name headline "> {{ page.title }}</ h1 >
16
+ < p class ="post-meta "> < time datetime ="{{ page.date | date_to_xmlschema }} "
17
+ itemprop ="datePublished "> {{ page.date | date: "%b %-d, %Y" }}</ time > {% if page.author %} •
18
+ < span itemprop ="author " itemscope itemtype ="http://schema.org/Person "> < span itemprop ="name "> {{
19
+ page.author }}</ span > </ span > {% endif %}
20
+ </ p >
17
21
18
- </ header >
22
+ </ header >
19
23
20
- < div class ="post-content " itemprop ="articleBody ">
21
- {{ content }}
22
- </ div >
23
- </ article >
24
- {% include social-share.html %}
25
- </ div >
24
+ < div class ="post-content " itemprop ="articleBody ">
25
+ {{ content }}
26
+ </ div >
27
+ </ article >
28
+ {% include social-share.html %}
29
+ </ div >
26
30
27
- {% if terms > 0 %}
28
- < div class ="splitter ">
29
- </ div >
31
+ {% if terms > 0 %}
32
+ < div class ="splitter ">
33
+ </ div >
30
34
31
- < div class ="panel-right ">
32
- < span class ="resize-warning "> If the commandline doesn't appear in the terminal, make sure popups are enabled or try resizing the browser window.</ span >
33
- {% for i in (1..terms) %}
34
- < div class ="term{{i}} "> </ div >
35
- {% endfor %}
36
- </ div >
37
- {% endif %}
35
+ < div class ="panel-right ">
36
+ < span class ="resize-warning "> If the commandline doesn't appear in the terminal, make sure popups are enabled
37
+ or try resizing the browser window.</ span >
38
+ {% for i in (1..terms) %}
39
+ < div class ="term{{i}} "> </ div >
40
+ {% endfor %}
41
+ </ div >
42
+ {% endif %}
38
43
39
- </ div >
44
+ </ div >
40
45
41
- < script >
42
- ( function ( ) {
43
- var font3 = document . createElement ( 'link' ) ;
44
- font3 . type = 'text/css' ;
45
- font3 . rel = 'stylesheet' ;
46
- font3 . href = '{{site.baseurl}}/css/syntax-highlighting.css' ;
47
- var q = document . getElementsByTagName ( 'link' ) [ 0 ] ;
48
- q . parentNode . insertBefore ( font3 , q ) ;
49
- } ) ( ) ;
50
- </ script >
51
- < script src ="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js "> </ script >
52
- < script src ="https://rawgit.com/RickStrahl/jquery-resizable/master/dist/jquery-resizable.min.js "> </ script >
53
- < script src ="https://cdn.rawgit.com/play-with-docker/sdk/74a853bbc404ce08c091a4b2c6f1de52df0da933/dist/pwd.js "> </ script >
54
- < script src ="{{site.baseurl}}/js/quiz.js "> </ script >
55
- < script >
56
- var siteUrl = "{{ site.url }}"
57
- { % if site . url == 'https://training.play-with-docker.com' % }
58
- if ( ( window . location . protocol + '//' + window . location . hostname ) == siteUrl ) {
59
- pwd . on ( 'init' , function ( ) {
60
- pwd . getUserInfo ( function ( pwduser ) {
61
- user = pwduser ;
62
- if ( user !== undefined ) {
63
- analytics . identify ( user . provider_user_id , { "email" :user . email } ) ;
64
- } else {
65
- analytics . identify ( ) ;
66
- }
67
- } ) ;
68
- } ) ;
69
- } else {
70
- console . log ( 'In _config.yml, the site url does not match the url you are serving from, so no analytics were pushed.' )
71
- }
72
- { % endif % }
73
- pwd . newSession ( [ { selector : '.term1' } , { selector : '.term2' } , { selector : '.term3' } ] , { baseUrl : '{{site.pwdurl}}' , ImageName : '{{page.image}}' } ) ;
74
- $ ( ".panel-left" ) . resizable ( {
75
- handleSelector : ".splitter" ,
76
- resizeHeight : false ,
77
- onDragEnd : pwd . resize . bind ( pwd )
78
- } ) ;
79
- window . onbeforeunload = function ( e ) {
80
- navigator . sendBeacon ( "{{site.pwdurl}}/sessions/" + pwd . sessionId + "/close" ) ;
81
- e . preventDefault ( ) ;
82
- e . returnValue = 'Hi' ;
83
- }
46
+ < script >
47
+ ( function ( ) {
48
+ var font3 = document . createElement ( 'link' ) ;
49
+ font3 . type = 'text/css' ;
50
+ font3 . rel = 'stylesheet' ;
51
+ font3 . href = '{{site.baseurl}}/css/syntax-highlighting.css' ;
52
+ var q = document . getElementsByTagName ( 'link' ) [ 0 ] ;
53
+ q . parentNode . insertBefore ( font3 , q ) ;
54
+ } ) ( ) ;
55
+ </ script >
56
+ < script
57
+ src ="https://cdn.rawgit.com/play-with-docker/sdk/74a853bbc404ce08c091a4b2c6f1de52df0da933/dist/pwd.js "> </ script >
58
+ < script src ="{{site.baseurl}}/js/quiz.js "> </ script >
59
+ < script >
60
+ addEventListener ( "load" , ( event ) => {
61
+ var siteUrl = "{{ site.url }}"
62
+ { % if site . url == 'https://training.play-with-docker.com' % }
63
+ if ( ( window . location . protocol + '//' + window . location . hostname ) == siteUrl ) {
64
+ pwd . on ( 'init' , function ( ) {
65
+ pwd . getUserInfo ( function ( pwduser ) {
66
+ user = pwduser ;
67
+ if ( user !== undefined ) {
68
+ analytics . identify ( user . provider_user_id , { "email" : user . email } ) ;
69
+ } else {
70
+ analytics . identify ( ) ;
71
+ }
72
+ } ) ;
73
+ } ) ;
74
+ } else {
75
+ console . log ( 'In _config.yml, the site url does not match the url you are serving from, so no analytics were pushed.' )
76
+ }
77
+ { % endif % }
78
+ pwd . newSession ( [ { selector : '.term1' } , { selector : '.term2' } , { selector : '.term3' } ] , { baseUrl : '{{site.pwdurl}}' , ImageName : '{{page.image}}' } ) ;
79
+ $ ( ".panel-left" ) . resizable ( {
80
+ handleSelector : ".splitter" ,
81
+ resizeHeight : false ,
82
+ onDragEnd : pwd . resize . bind ( pwd )
83
+ } ) ;
84
+ window . onbeforeunload = function ( e ) {
85
+ navigator . sendBeacon ( "{{site.pwdurl}}/sessions/" + pwd . sessionId + "/close" ) ;
86
+ e . preventDefault ( ) ;
87
+ e . returnValue = 'Hi' ;
88
+ }
89
+ } ) ;
84
90
85
- </ script >
91
+ </ script >
0 commit comments