File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change
1
+ /* Survey banner .css */
2
+
3
+ .survey-banner {
4
+ margin-top : 10px ;
5
+ background-color : # f3f4f7 ;
6
+ padding-top : 15px ;
7
+ padding-left : 10px ;
8
+ padding-bottom : 1px ;
9
+ }
10
+
11
+ @media screen and (max-width : 600px ) {
12
+ .survey-banner {
13
+ padding-top : 5px ;
14
+ padding-left : 5px ;
15
+ padding-bottom : -1px ;
16
+ font-size : 12px ;
17
+ margin-bottom : 5px ;
18
+ }
19
+ }
Original file line number Diff line number Diff line change 1
1
{% extends "!layout.html" %}
2
2
3
-
4
3
{%- block content %}
5
4
{{ super() }}
6
5
< script >
113
112
</ script >
114
113
115
114
< img height ="1 " width ="1 " style ="border-style:none; " alt ="" src ="https://www.googleadservices.com/pagead/conversion/795629140/?label=txkmCPmdtosBENSssfsC&guid=ON&script=0 "/>
115
+
116
+ //temporarily add a link to survey
117
+ < script >
118
+ var survey = '<div class="survey-banner"><p><i class="fas fa-poll" aria-hidden="true">  </i> Take the annual <a href="https://forms.gle/jdNexNU6eZ8mCGDY7">PyTorch Tutorials survey</a>.</p></div>'
119
+ if ( $ ( ".pytorch-call-to-action-links" ) . length ) {
120
+ $ ( ".pytorch-call-to-action-links" ) . before ( survey ) ;
121
+ } else {
122
+ $ ( "#pytorch-article" ) . prepend ( survey ) ;
123
+ }
124
+ </ script >
116
125
{% endblock %}
Original file line number Diff line number Diff line change @@ -285,7 +285,8 @@ def reset_seeds(gallery_conf, fname):
285
285
286
286
html_css_files = [
287
287
'https://cdn.jsdelivr.net/npm/katex@0.10.0-beta/dist/katex.min.css' ,
288
- 'css/custom.css'
288
+ 'css/custom.css' ,
289
+ 'css/custom2.css'
289
290
]
290
291
291
292
def setup (app ):
You can’t perform that action at this time.
0 commit comments