|
3 | 3 |
|
4 | 4 | <style> |
5 | 5 | pre{ |
6 | | - white-space: pre-wrap; |
7 | | - white-space: -moz-pre-wrap; |
8 | | - white-space: -pre-wrap; |
9 | | - white-space: -o-pre-wrap; |
10 | | - word-wrap: break-word; |
| 6 | + white-space: pre-wrap; |
| 7 | + white-space: -moz-pre-wrap; |
| 8 | + white-space: -pre-wrap; |
| 9 | + white-space: -o-pre-wrap; |
| 10 | + word-wrap: break-word; |
11 | 11 | width:100%; overflow-x:auto; |
12 | | - <!-- background-color: red; --> |
13 | 12 | } |
14 | 13 | ol li{ |
15 | 14 | padding: 0; |
|
18 | 17 | padding-left: 0!important; |
19 | 18 | margin: 0!important; |
20 | 19 | } |
21 | | -.bib-btn { |
22 | | - font-size: 0.8rem; |
23 | | - padding: 1px 6px; |
24 | | - margin-bottom: 2px; |
25 | | -} |
26 | 20 | </style> |
27 | 21 |
|
28 | | - |
29 | | -<!-- primary, success, danger, warning--> |
30 | | - |
31 | | -{% if entry.keywords contains "nonheavy" %} |
32 | | -{% else %} |
33 | | -<div class="text-justify"> |
| 22 | +{% assign _allowed = "article inproceedings report unpublished" %} |
| 23 | +{% if _allowed contains entry.type and entry.keywords != "nonheavy" %} |
| 24 | +<div class="pub-entry"> |
34 | 25 | <div class="row"> |
35 | | -<div class="col-sm-2 col-2 d-none d-md-block" style="margin:0; padding:0; margin-top:3px;"> |
36 | | -<!-- <div class="col-sm-2 col-2"> --> |
| 26 | +<div class="col-sm-2 col-2 d-none d-md-block" style="margin:0; padding:0; margin-top:4px;"> |
| 27 | + |
37 | 28 | {% if entry.type == "article" %} |
38 | | -<center><button class="btn btn-primary btm-sm Disabled" style="width:100%;border-radius:12px;">ARTICLE</button></center> |
39 | | - |
| 29 | +<center><button class="btn btn-primary pub-type-badge Disabled">ARTICLE</button></center> |
40 | 30 | {% endif %} |
41 | 31 | {% if entry.type == "inproceedings" %} |
42 | | -<center><button class="btn btn-success btm-sm Disabled" style="width:100%;border-radius:12px;">PROCEEDING</button></center> |
| 32 | +<center><button class="btn btn-success pub-type-badge Disabled">PROCEEDING</button></center> |
43 | 33 | {% endif %} |
44 | 34 | {% if entry.type == "report" %} |
45 | | -<center><button class="btn btn-danger btm-sm Disabled" style="width:100%;border-radius:12px;">REPORT</button></center> |
| 35 | +<center><button class="btn btn-danger pub-type-badge Disabled">REPORT</button></center> |
46 | 36 | {% endif %} |
47 | 37 | {% if entry.type == "unpublished" %} |
48 | | -<center><button class="btn btn-warning btm-sm Disabled" style="width:100%;border-radius:12px;">PREPRINT</button></center> |
| 38 | +<center><button class="btn btn-warning pub-type-badge Disabled">PREPRINT</button></center> |
49 | 39 | {% endif %} |
| 40 | + |
50 | 41 | </div> |
51 | 42 |
|
52 | 43 | <div class="col-sm-10 col-10"> |
53 | | -<div class="row"> |
| 44 | +<div> |
54 | 45 | {{reference | replace_first: 'Radhakrishnan, A.', '<b>Radhakrishnan, A.</b>' | replace_first: 'Bati, A.', '<b>Bati, A.</b>' | replace_first: 'Le Berre, H. A.', '<b>Le Berre, H. A.</b>' | replace_first: 'Le Berre, H.', '<b>Le Berre, H.</b>' | replace_first: 'Zeng, Q.','<b>Zeng, Q.</b>' | replace_first: 'Kothari, Y.','<b>Kothari, Y.</b>' | replace_first: 'Panchal, A.', '<b>Panchal, A.</b>' | replace_first: 'Chrit, F. E.', '<b>Chrit, F. E.</b>' | replace_first: 'Kocherla, S.', '<b>Kocherla, S.</b>' | replace_first: 'Wilfong, B.', '<b>Wilfong, B.</b>' | replace_first: 'Sinha, A.', '<b>Sinha, A.</b>' | replace_first: 'Chu, T.', '<b>Chu, T.</b>' | replace_first: 'Song, Z.', '<b>Song, Z.</b>' | replace_first: 'Lee, M.', '<b>Lee, M.</b>', | replace_first: 'Gupta, A.', '<b>Gupta, A.</b>', | replace_first: 'Vickers, D. J.', '<b>Vickers, D. J.</b>' | replace_first: 'Prathi, T.', '<b>Prathi, T.</b>' | replace_first: 'Adam, D.', '<b>Adam, D.</b>' | replace_first: 'Yu, H.', '<b>Yu, H.</b>'}}</div> |
55 | 46 |
|
| 47 | +<div style="margin-top:4px;"> |
56 | 48 | {% assign bibtest = false %} |
57 | 49 | {% if entry.file %} |
58 | 50 | {% assign bibfile = "/papers/" | append: entry.file %} |
|
64 | 56 | {% endif %} |
65 | 57 |
|
66 | 58 | {% if bibtest %} |
67 | | -<a href="{{ site.url }}{{ site.baseurl }}/papers/{{ entry.file }}" target="_blank"><button class="btn btn-info btm-sm bib-btn">PDF</button></a> |
| 59 | +<a href="{{ site.url }}{{ site.baseurl }}/papers/{{ entry.file }}" target="_blank"><button class="btn btn-primary bib-btn">PDF</button></a> |
68 | 60 | {% endif %} |
69 | 61 |
|
70 | 62 | {% if entry.doi %} |
71 | | -<a href="{{ entry.doi | prepend: 'https://doi.org/' }}" target="_blank"><button class="btn btn-info btm-sm bib-btn">DOI</button></a> |
| 63 | +<a href="{{ entry.doi | prepend: 'https://doi.org/' }}" target="_blank"><button class="btn btn-info bib-btn">DOI</button></a> |
72 | 64 | {% endif %} |
73 | 65 |
|
74 | 66 | {% if entry.link %} |
75 | | -<a href="{{ entry.link }}" target="_blank"><button class="btn btn-info btm-sm bib-btn">DOI</button></a> |
| 67 | +<a href="{{ entry.link }}" target="_blank"><button class="btn btn-info bib-btn">DOI</button></a> |
76 | 68 | {% endif %} |
77 | 69 |
|
78 | | -<!-- {% if entry.type == 'unpublished' and entry.arxiv %} --> |
79 | | -<!-- <a href="{{ entry.arxiv | prepend: 'https://arxiv.org/abs/' }}" target="_blank"><button class="btn btn-info btm-sm bib-btn">ARXIV</button></a> --> |
80 | | -<!-- {% endif %} --> |
81 | | - |
82 | | -{% if entry.type == 'unpublished' or entry.type == 'article' or entry.type == 'thesis' or entry.type == 'inproceedings' or entry.type == 'proceedings' or entry.type == 'report' %} |
83 | | -<button class="btn btn-info btm-sm bib-btn" onclick="toggleBibtex{{entry.key}}()">BIB</button> |
84 | | -{% endif %} |
| 70 | +<button class="btn btn-info bib-btn" style="opacity:0.7;" onclick="toggleBibtex{{entry.key}}()">BIB</button> |
85 | 71 |
|
86 | 72 | {% if entry.abstract %} |
87 | | -<button class="btn btn-info btm-sm bib-btn" onclick="toggleAbstract{{entry.key}}()">ABSTRACT</button> |
| 73 | +<button class="btn btn-info bib-btn" style="opacity:0.7;" onclick="toggleAbstract{{entry.key}}()">ABSTRACT</button> |
88 | 74 | {% endif %} |
| 75 | +</div> |
89 | 76 |
|
90 | 77 | {% if entry.abstract %} |
91 | | -<div id="a{{entry.key}}" style="display: none; background-color:black; border-radius:8px; padding:10px; margin-bottom:20px;"> |
| 78 | +<div id="a{{entry.key}}" class="bib-panel" style="display:none;"> |
92 | 79 | <pre>{{ entry.bibtex | remove: "entry.abstract" }}</pre> |
93 | 80 | </div> |
94 | 81 | {% else %} |
95 | | -<div id="a{{entry.key}}" style="display: none; background-color:black; border-radius:8px; padding:10px; margin-bottom:20px;"> |
| 82 | +<div id="a{{entry.key}}" class="bib-panel" style="display:none;"> |
96 | 83 | <pre>{{ entry.bibtex }}</pre> |
97 | 84 | </div> |
98 | 85 | {% endif %} |
99 | 86 |
|
100 | | -<div id="b{{entry.key}}" style="display: none; background-color:black; border-radius:8px; padding:10px; margin-bottom:20px;"> |
| 87 | +<div id="b{{entry.key}}" class="bib-panel" style="display:none;"> |
101 | 88 | <pre>{{entry.abstract}}</pre> |
102 | 89 | </div> |
103 | | -</div> |
104 | 90 |
|
| 91 | +</div> |
105 | 92 | </div> |
106 | 93 | </div> |
107 | 94 | {% endif %} |
108 | 95 |
|
109 | 96 | <script> |
110 | 97 | function toggleBibtex{{entry.key}}(parameter) { |
111 | | - var x= document.getElementById('a{{entry.key}}'); |
112 | | - if (x.style.display === 'none') { |
113 | | - x.style.display = 'block'; |
114 | | - x.style.backgroundColor = '#141617'; |
115 | | - } else { |
116 | | - x.style.display = 'none'; |
117 | | - } |
| 98 | + var x = document.getElementById('a{{entry.key}}'); |
| 99 | + x.style.display = x.style.display === 'none' ? 'block' : 'none'; |
118 | 100 | } |
119 | 101 | function toggleAbstract{{entry.key}}(parameter) { |
120 | | - var x= document.getElementById('b{{entry.key}}'); |
121 | | - if (x.style.display === 'none') { |
122 | | - x.style.display = 'block'; |
123 | | - x.style.backgroundColor = '#141617'; |
124 | | - } else { |
125 | | - x.style.display = 'none'; |
126 | | - } |
| 102 | + var x = document.getElementById('b{{entry.key}}'); |
| 103 | + x.style.display = x.style.display === 'none' ? 'block' : 'none'; |
127 | 104 | } |
128 | 105 | </script> |
0 commit comments