Skip to content

Commit 648b598

Browse files
committed
added repo link go source viwer & fixed viwer
1 parent 3ac204d commit 648b598

2 files changed

Lines changed: 24 additions & 4 deletions

File tree

‎cache.manifest‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Build: 20151224122820
2+
# Build: 20151224033157
33

44
CACHE:
55
resources/css/bootstrap.min.css

‎index.html‎

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,24 @@
192192
.popover--variable .btn{
193193
border-bottom: 0;
194194
}
195+
.sourcecode-modal{
196+
max-height: 98%;
197+
}
198+
.sourcecode-modal .modal-dialog,
199+
.sourcecode-modal .modal-content,
200+
.sourcecode-modal .modal-body{
201+
height: 100%;
202+
overflow: hidden;
203+
}
204+
.sourcecode-modal .modal-content{
205+
padding-bottom: 20px;
206+
}
207+
.sourcecode-modal .modal-body{
208+
overflow: scroll;
209+
transform: translate3d(0,0,0);
210+
-webkit-transform: translate3d(0,0,0);
211+
-webkit-overflow-scrolling: touch;
212+
}
195213
@media (min-width: 62em) {
196214
.main-container{
197215
padding: 20px 150px;
@@ -291,13 +309,14 @@ <h5 class="variable-wrap" data-id="{id}" data-repo="{repo}" data-url="{url}" dat
291309
</div>
292310
</section>
293311
</section>
294-
<div class="modal fade js-sourcecode-modal" tabindex="-1" role="dialog" aria-labelledby="sourcecodeModal" aria-hidden="true">
312+
<div class="modal fade sourcecode-modal" tabindex="-1" role="dialog" aria-labelledby="sourcecodeModal" aria-hidden="true">
295313
<div class="modal-dialog modal-lg">
296314
<div class="modal-content">
297315
<div class="modal-header">
298316
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
299317
<span aria-hidden="true">&times;</span>
300318
</button>
319+
<a target="_blank">Repo</a>
301320
</div>
302321
<div class="modal-body">
303322
<pre><code></code></pre>
@@ -584,8 +603,8 @@ <h5 class="variable-wrap" data-id="{id}" data-repo="{repo}" data-url="{url}" dat
584603

585604
variableMenuTpl: $('script[template="variableMenu"]').html(),
586605

587-
sourceCodeModal: $('.js-sourcecode-modal'),
588-
sourceCodeContent: $('.js-sourcecode-modal pre code'),
606+
sourceCodeModal: $('.sourcecode-modal'),
607+
sourceCodeContent: $('.sourcecode-modal pre code'),
589608

590609
githubCorner: $('.github-corner svg'),
591610

@@ -621,6 +640,7 @@ <h5 class="variable-wrap" data-id="{id}" data-repo="{repo}" data-url="{url}" dat
621640
return false;
622641
},
623642
content: function(){
643+
els.sourceCodeModal.find('.modal-header a').attr('href',this.dataset.repo);
624644
return els.variableMenuTpl
625645
.replace('{id}',this.dataset.id)
626646
.replace('{val}',this.dataset.val)

0 commit comments

Comments
 (0)