summaryrefslogtreecommitdiff
path: root/website/static/website/templates/index.html
blob: cde182049d7a03b8e6fe1d0e5efa18f1052cef2d (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
{% load static %}
<!DOCTYPE html>
<html lang="en">

<head>
    <title>Beta R on cloud</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="{% static 'website/bootstrap-4.1.0/css/bootstrap.min.css' %}">
    <link rel="stylesheet" href="{% static 'website/bootstrap-css/custom.css' %}">
    <link href="{% static 'website/css/codemirror.css' %}" rel="stylesheet" />
    <link href="{% static 'website/css/fullscreen.css'%}" rel="stylesheet" />
    <link href="{% static 'website/css/monokai.css' %}" rel="stylesheet" />
    <link rel="shortcut icon" type="image/png" href="{% static 'website/images/favicon.ico' %}" />
    <meta name="title" content="R computational resource, R high performance computing on demand">
    <meta name="description" content="R on Cloud facilitates execution of the codes for particular example(s) online. The results can then be verified with the solved example(s) from the textbook. It is also possible to change the values of the variables and in fact, the code itself, and execute it. In addition to the given examples, one can also copy and paste (or) write a new code in the input box provided and execute the same.">
    <meta name="keywords" content="R on cloud,R online execute,R online compiler,R computation,calcul scientifique,numerical computation,R computing online,R calculator">
    <script>
        var api_url_upload = "{{ api_url_upload }}";
        var key = "{{ key }}";
    </script>
    <script>
        if('{{ err_msg }}'){
        alert('{{ err_msg }}');
        }
    </script>
</head>

<body>
        <!-- START Bootstrap-Alert -->
    <div class="alert text-center cookiealert" role="alert" style="background:#0f2342; color: #ffffff;">
        The website is currently undergoing some developmental changes. If you encounter any glitches, write to us at <a href="mailto:contact-r@fossee.in">contact-r[at]fossee[dot]in</a>; we value your feedback and suggestions !
            <button type="button" class="close" data-dismiss="alert" aria-label="Close" >
            <span aria-hidden="true">&times;</span>
        </button>
    </div>
    <!-- END Bootstrap-Alert -->
    <nav class="navbar navbar-expand-md bg-dark navbar-dark">
        <img class="navbar-brand" src="{% static 'website/images/home-logo.png' %}" alt="logo" style="height:40px;width:30px">
        <a class="navbar-brand" href="#">R on cloud <sup><i>Beta</i></sup></a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="collapsibleNavbar">
            <ul class="navbar-nav ml-auto">
                {% if user and not user.is_anonymous %} {% if not user.is_staff %}
               <li class="nav-item">
                    <a class="nav-link" href="" id="search_book" data-toggle="modal" data-target="#search_wrapper"><i class="fa fa-search" aria-hidden="true"></i>Search Book</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="" id="about-us" data-toggle="modal" data-target="#about_wrapper">About</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="" id="invitation" data-toggle="modal" data-target="#invitation_wrapper">Invitation</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="" id="contact" data-toggle="modal" data-target="#contact_wrapper">Contact Us</a>
                </li>
                {% else %}
                <li class="nav-item">
                    <a class="nav-link" href="/review" id="contact" data-toggle="modal" data-target="#review-interface">Review Interface</a>
                </li>
                {% endif %}
                <li class="nav-item">
                    <a data-key="logout" href="/logout">Log out</a>
                </li>
                <li class="nav-item">
                    <a style="color:red">Hello, {{ user.get_full_name }}!</a>
                </li>
                {% else %}
               <li class="nav-item">
                    <a class="nav-link" href="" id="search_book" data-toggle="modal" data-target="#search_wrapper"><i class="fa fa-search text-primary" aria-hidden="true"></i>Search</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="" id="about-us" data-toggle="modal" data-target="#about_wrapper">About</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="" id="invitation" data-toggle="modal" data-target="#invitation_wrapper">Invitation</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="" id="contact" data-toggle="modal" data-target="#contact_wrapper">Contact Us</a>
                </li>
                {% endif %}
                <li class="nav-item">
                    <a href="https://r.fossee.in" target="_blank">
                        <img class="navbar-brand" src="{% static 'website/images/r-logo.png' %}" alt="logo" style="width:auto;height:60px;">
                    </a>
                </li>
            </ul>
        </div>
    </nav>
    <br>
    <div class="container small">
        <form class="col-12">
             <div id="main-category-wrapper" class="form-row form-group">
                <label class="col-sm-2 col-form-label font-weight-bold"><i class="fa fa-list-ul" aria-hidden="true"></i> Main Category :</label>
                <select id="main_categories" class="form-control-sm col-sm-10">
                    <option value="0">Select Main Category</option>
                    {% for category in catg %} {% if maincat_id == category.category_id or maincat_id == 0 %}
                    <option value="{{ maincat_id }}" selected>{{ forloop.counter }} - {{ category.maincategory }}</option>
                    {% else %}
                    <option value="{{ category.category_id }}">{{ forloop.counter }} - {{ category.maincategory }}</option>
                    {% endif %} {% endfor %}
                </select>
            </div> 

            <div id="category-wrapper" class="form-row form-group">
                <label for="disabledInput" class="col-sm-2 col-form-label font-weight-bold"><i class="fa fa-th-list" aria-hidden="true"></i> Sub Category :</label>
                <select id="categories" class="form-control-sm col-sm-8">
                    <option value="0">Select Subcategory</option>
                    {% for category in subcatg %} {% if subcategory_id == category.subcategory_id %}
                    <option value="{{ category.subcategory_id }}" selected>{{ forloop.counter }} - {{ category.subcategory }}</option>
                    {% else %}
                    <option value="{{ category.subcategory_id }}">{{ forloop.counter }} - {{ category.subcategory }}</option>
                    {% endif %} {% endfor %}
                </select>
                <a href="#" class="extra-link col-sm-2" id="contributor">+Contributor <i class="fa fa-users" aria-hidden="true"></i> </a>
            </div>
            <div id="books-wrapper" class="form-row form-group">
                <label for="disabledInput" class="col-sm-2 col-form-label font-weight-bold"><i class="fa fa-book" aria-hidden="true"></i> 
Book : </label>
                <select id="books" class="form-control-sm col-sm-8">
                    <option value="0">Select Book </option>

                    {% for book in books %} {% if book_id == book.id %}
                    <option value="{{ book.id }}" selected>{{ forloop.counter }} - {{ book.book }} (by {{ book.author }})</option>
                    {% else %}
                    <option value="{{ book.id }}">{{ forloop.counter }} - {{ book.book }} (by {{ book.author }})</option>
                    {% endif %} {% endfor %}
                </select>
                <a href="#" class="extra-link col-sm-2" id="download-book">Download Book <i class="fa fa-download" aria-hidden="true"></i></a>
            </div>
            <div id="chapters-wrapper" class="form-row form-group">
                <label for="disabledInput" class="col-sm-2 col-form-label font-weight-bold"><i class="fa fa-file" aria-hidden="true"></i> Chapter :</label>
                <select id="chapters" class="form-control-sm col-sm-8">
                    <option value="0">Select Chapter</option>
                    {% for chapter in chapters %} {% if chapter_id == chapter.id %}
                    <option value="{{ chapter.id }}" selected>{{ chapter.number }} - {{ chapter.name }}</option>
                    {% else %}
                    <option value="{{ chapter.id }}">{{ chapter.number }} - {{ chapter.name }}</option>
                    {% endif %} {% endfor %}
                </select>
                <a href="#" class="extra-link col-sm-2" id="download-chapter">Download Chapter <i class="fa fa-download" aria-hidden="true"></i></a>
            </div>
            <div id="examples-wrapper" class="form-row form-group">

                <label for="disabledInput" class="col-sm-2 col-form-label font-weight-bold"><i class="fa fa-bars" aria-hidden="true"></i> Example :</label>
                <select id="examples" class="form-control-sm col-sm-8">
                    <option value="0">Select Example</option>
                    {% for example in examples %} {% if eid == example.id %}
                    <option value="{{ example.id }}" selected>{{ example.number }} - {{ example.caption }}</option>
                    {% else %}
                    <option value="{{ example.id }}">{{ example.number }} - {{ example.caption }}</option>
                    {% endif %} {% endfor %}
                </select>
                <a href="#" class="extra-link col-sm-2" id="download-example">Download Example <i class="fa fa-download" aria-hidden="true"></i></a>
            </div>
            <div id="revisions-wrapper" class="form-row form-group">
                <label for="disabledInput" class="col-sm-2 col-form-label font-weight-bold"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> Revision: </label>
                <select id="revisions" class="form-control-sm col-sm-3">
                    <option value="">Select a revision</option>
                    {% for key, value in revisions %} {% if value == commit_sha %}
                    <option value="{{ value }}" selected>{{ forloop.counter }} - {{key }}</option>
                    {% else %}
                    <option value="{{ revision.value }}">
                        {{ forloop.counter }} - {{ key }}
                    </option>
                    {% endif %} {% endfor %}
                </select>
                <label for="disabledInput" class="col-sm-1 col-form-label font-weight-bold"><i class="fa fa-files-o" aria-hidden="true"></i>
 Diff with: </label>
                <select id="revisions-diff" class="form-control-sm col-sm-3">
                    <option value="">Select a revision</option>
                    {% for key, value in revisions %}
                    <option value="{{ revision.valuea }}">
                        {{ forloop.counter }} - {{ key }}
                    </option>
                    {% endfor %}
                </select>
            </div>
        </form>
        <!-- -------------------------------------------------------------------------------------- -->
    </div> 
    <!---------- container----------------- -->
    <div class="container-fluid text-dark" style="background: #eeeeee;">
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <div class="row">
                        <div class="col-4">
                            <label for="code"><i class="fa fa-file-code-o" aria-hidden="true"></i>
 R code:</label>
                        </div>
                        <div class="col-2 float-left">
                            {% if ex_views_count == NULL %}
                            <i class="views-count fa fa-eye" id="example_views_count" aria-hidden="true">
                                        </i> {% else %}
                            <i class="views-count fa fa-eye" id="example_views_count" aria-hidden="true">
                                        {{ ex_views_count }}
                                    </i> {% endif %}
                        </div>
                        <div class="col-2"></div>
                        <div class="col-2 text-primary">
                            <span id="review-link">
                            {% if review %}
                            <a href="{{ review_url}}" id="review" target="_blank">{{ review }} Review
                            </a>
                            {% else %}
                            <a href="#" id="review" target="_blank"></a>
                            {% endif %}
                            </span>
                        </div>
                        <div class="col-1">
                            <div class="float-right">
                                <a href="#" id="toggle-code">
                                    <img src="{% static 'website/images/icon-toggle.png'%}">
                                </a>
                            </div>
                        </div>
                        <div class="col-1">
                            <div class="float-right">
                                <a href="#" id="fullscreen-code">
                                    <img src="{% static 'website/images/icon-fullscreen.png'%}">
                                </a>
                            </div>
                        </div>
                    </div>
                    <textarea id="code" class="form-control" rows="5" placeholder="Write a new code or select existing from above category..." wrap="hard">{{ code }}</textarea>
                    <br>
                    <input type="hidden" id="user_id" name="user_id" value="{{ user_id }}">
                    <a id="execute" class="btn btn-dark text-white"><span id="execute-inner">
                    <i class="fa fa-play-circle" aria-hidden="true"></i>
                     Execute 
                     <i class="fa fa-cogs" aria-hidden="true"></i>
                    </span></a>
                     <!-- Trigger the modal with a button -->
                      <!-- <button id="uploaddataset" type="button" class="btn btn-dark text-white" data-toggle="modal" data-target="#uploaddatasetModal">Upload Dataset</button>  -->
                       <button id="reset" type="button" class="btn btn-dark text-white" data-dismiss="modal"><i class="fa fa-undo" aria-hidden="true"></i>
 Reset</button>

                      <!-- Modal -->
                      <div class="modal fade" id="uploaddatasetModal" role="dialog">
                        <div class="modal-dialog">
                          <!-- Modal content-->
                          <div class="modal-content">
                            <div class="modal-header">
                            </div>
                            <div class="modal-body">
                                <p>Upload your CSV dataset file</p>
                            <form>
                                {% csrf_token %}
                              <input type="file" id="fileSelect" accept="text/csv" />
                              <button id="fileuploadsubmit" type="button" >Upload</button>
                            </form>
                            </div>
                            <div class="modal-footer">
                              <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                            </div>
                          </div>
                        </div>
                      </div>

                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <div class="row">
                        <div class="col-10">
                            <label for="result"><i class="fa fa-cubes" aria-hidden="true"></i> Result:</label>
                        </div>
                        <div class="col-1">
                            <div class="float-right">
                                <a href="#" id="toggle-result">
                                    <img src="{% static 'website/images/icon-toggle.png'%}">
                                </a>
                            </div>
                        </div>
                        <div class="col-1">
                            <div class="float-right">
                                <a href="#" id="fullscreen-result">
                                    <img src="{% static 'website/images/icon-fullscreen.png'%}">
                                </a>
                            </div>
                        </div>
                    </div>
                    <textarea id="result" class="form-control" rows="5"></textarea>
                    <br>
                   <!-- <a id="bug" href="" class="btn btn-dark text-white float-right" data-toggle="modal" data-target="#bug_form_wrapper">Report bug / Give Feedback</a> -->
                </div>
            </div>
        </div>
    </div>
    <!-- -------------------------------- -->
    <!---------- container----------------- -->
    <div class="container-fluid bg-dark text-light">
        <br>
        <div class="row">

            <div class="col-4">
                <a href="https://fossee.in" target="_blank"><img class="bg-white img-responsive" src="{% static 'website/images/fossee-logo.png' %}" alt="logo" style="width:100px;height: 45px;"></a>
            </div>
            {% if garuda_server == 1 %}
            <div class="col-4">
                <a href="http://garudaindia.in" target="_blank"><img class="bg-white img-responsive mx-auto d-block" src="{% static 'website/images/garuda_logo.png' %}" alt="logo" style="width:100px;height: 45px;"></a>
            </div>
            {% else %}
            <div class="col-4">
            <center>
            <a rel="funded_by" href="http://www.sakshat.ac.in/" target="_blank"><img alt="NMEICT" style="border-width:0;width:30%;background:#ffffff;" src="{% static 'website/images/NMEICT.png' %}" /></span></a>
            </center>
            </div>
            {% endif %}
            <div class="col-4">
                <a href="https://iitb.ac.in" target="_blank" class="float-right"><img class="bg-white img-responsive" src="{% static 'website/images/iitb-logo.png' %}" alt="logo" style="width:50px;height: 45px;"></a>
            </div>

        </div>
        <div class="row  small">
            <div class="col">
                <p class="text-center"></p>
            </div>
        </div>
        <div class="row">
            <div class="col-2">
                <p class="float-left"><a href="#" id="disclaimer" data-toggle="modal" data-target="#disclaimer-text">Disclaimer</a></p>
            </div>
            <div class="col-8">
             <center><p>
            <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank"><img alt="Creative Commons License" style="border-width:0" src="{% static 'website/images/88x31.png' %}" /></a>
            <br />This work is licensed under a <a id="cc" rel="license" class="text-white bg-dark" href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative Commons Attribution-ShareAlike 4.0 International License</a>.</p></center>
            </div>
            <div class="col-2">
                <a href="https://stats-a.fossee.in/cgi-bin/awstats.pl?config=r.fossee.in" class="float-right" target="_blank">View Stats <i class="fa fa-bar-chart text-danger"></i></a>
            </div>
        </div>
    </div>
    <!-- -------------------------------- -->
    <!-- disclaimer modal -->
    <div class="modal" id="disclaimer-text">
        <div class="modal-dialog">
            <div class="modal-content">

                <!-- Modal Header -->
                <div class="modal-header">
                    <h4 class="modal-title text-primary">Disclaimer</h4>
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                </div>

                <!-- Modal body -->
                <div class="modal-body">
                    <p class="text-justify">Every effort is made to make all the codes to run smoothly. However, R Cloud takes no responsibility for, and will not be liable for, the website being temporarily unavailable due to technical issues and code not producing accurate outputs due to any toolboxes.
                    </p>
                </div>

                <!-- Modal footer -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
                </div>

            </div>
        </div>
    </div>
    <!-- -------------disclaimer modal end------------------- -->
    <!-- about us -->
    <div class="modal" id="about_wrapper">
        <div class="modal-dialog">
            <div class="modal-content">

                <!-- Modal Header -->
                <div class="modal-header">
                    <h4 class="modal-title text-primary">About R on GARUDA Cloud.</h4>
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                </div>

                <!-- Modal body -->
                <div class="modal-body">
                    <p class="text-justify">
                        R on Cloud facilitates execution of the codes for particular example(s) online. The results can then be verified with the solved example(s) from the textbook. It is also possible to change the values of the variables and in fact, the code itself, and execute it. In addition to the given examples, one can also copy and paste (or) write a new code in the input box provided and execute the same. <a href="http://r.fossee.in" target="_blank">Read more..</a>
                    </p>
                </div>

                <!-- Modal footer -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
                </div>

            </div>
        </div>
    </div>
    <!-- --------------------about us modal ends------------------ -->
    <!-- contributor -->
    <div class="modal" id="contributor_wrapper">
        <div class="modal-dialog">
            <div class="modal-content">

                <!-- Modal Header -->
                <div class="modal-header">
                    <h6 class="modal-title text-primary"><u>Contributor details</u></h6>
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                </div>

                <!-- Modal body -->
                <div class="modal-body">
                    <table class="table table-striped">
                        <tbody>
                            <tr>
                                <td>Contributor name</td>
                                <td><span id="full_name"></span></td>
                            </tr>
                            <tr>
                                <td>Mentor</td>
                                <td><span id="faculty"></span></td>
                            </tr>
                            <tr>
                                <td>Book Reviewer</td>
                                <td><span id="reviewer"></span></td>
                            </tr>
                            <tr>
                                <td>College</td>
                                <td><span id="university"></span></td>
                            </tr>
                            <tr>
                                <td>Funded By</td>
                                <td><span id="funded_by"><a rel="funded_by" href="http://www.sakshat.ac.in/"><img alt="NMEICT" style="border-width:0;width:50%;" src="{% static 'website/images/NMEICT.png' %}" /></span></a>
                                </td>
                            </tr>
                            <tr>
                                <td>License</td>
                                <td><span id="license"><a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="{% static 'website/images/88x31.png' %}" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.</span></td>
                            </tr>
                        </tbody>
                    </table>
                </div>

                <!-- Modal footer -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
                </div>

            </div>
        </div>
    </div>
    <!-- --------------------contributor modal ends------------------ -->

    <!-- invitation -->
    <div class="modal" id="invitation_wrapper">
        <div class="modal-dialog">
            <div class="modal-content">

                <!-- Modal Header -->
                <div class="modal-header">
                    <h5 class="modal-title text-primary">Contribute to R Textbook Companion Project.</h5>
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                </div>

                <!-- Modal body -->
                <div class="modal-body">
                    <p class="text-justify">
                        The FOSSEE team has created a submission portal that allows the code for each example to be uploaded individually. The Textbook Companion Project aims to port solved examples from standard textbooks using an open source software system, such as R.
                        <a href="http://R.in/Textbook_Companion_Project" target="_blank">Read more..</a>
                    </p>
                </div>

                <!-- Modal footer -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
                </div>

            </div>
        </div>
    </div>
    <!-- --------------------contact us modal ends------------------ -->
    <!-- invitation -->
    <div class="modal" id="contact_wrapper">
        <div class="modal-dialog">
            <div class="modal-content">

                <!-- Modal Header -->
                <div class="modal-header">
                    <h5 class="modal-title text-primary">Send us your valuable suggestions and feedback that shall enable us to enhance our work.</h5>
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                </div>

                <!-- Modal body -->
                <div class="modal-body">
                    <p class="text-justify">
                        If you wish to contribute to our activities such as <b>Lab Migration, Textbook 
                        Companion,</b> please write to
                        <a href="mailto: contact-r@fossee.in">contact-r[at]fossee[dot]in</a> for feedback on Lab Migration (or) Textbook Companion.
                    </p>
                </div>

                <!-- Modal footer -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
                </div>

            </div>
        </div>
    </div>
    <!-- --------------------invitation modal ends------------------ -->
    <!-- Search Modal -->

    <div class="modal" id="search_wrapper">
        <div class="modal-dialog">
            <div class="modal-content">

                <!-- Modal Header -->
                <div class="modal-header">
                    <h4 class="modal-title">Search</h4>
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                </div>

                <!-- Modal body -->
                <div class="modal-body">
                    <div class="input-group">
                        <input id="search-input" type="text" class="form-control" placeholder="Enter book/author name or code string">
                        <span class="input-group-btn">
                    <button id="search" class="btn btn-info" type="button">Search</button>
                </span>
                    </div>

                    <div class="custom-control custom-radio">
                        <label class="radio-inline"><input id="bybook" type="radio" value="bybook" name="optradio" checked="checked"> <i class="fa fa-search" aria-hidden="true"></i>Search by book/author name <i class="fa fa-book" aria-hidden="true"></i></label>
                        <label class="radio-inline"><input id="bycode" type="radio" value="bycode" name="optradio"> <i class="fa fa-search" aria-hidden="true"></i>Search by code</label>
                    </div>
                </div>
                <div class="container">
                    <div id="searched_book" class="row">
                        <div id="relevant" class="col-4 small">
                        </div>
                        <div id="popular" class="col-4 small bg-light text-primary" style="word-wrap: break-word;overflow:auto;">
                        </div>
                        <div id="recent" class="col-4 small bg-light text-primary" style="word-wrap: break-word;overflow:auto;">
                        </div>
                    </div>
                    <div id="searched_code" class="row">
                    </div>
                </div>
                <!-- Modal footer -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
                </div>

            </div>
        </div>
    </div>
    <!-- ---------- search modal end ----------------- -->
    <div class="modal" id="bug_form_wrapper">
        {% include "bug-form.html" %}
    </div>
    <!-- -plotbox wrapper ---------------------------------- -->
    <div class="modal" id="plotbox_wrapper">
        <div class="modal-dialog">
            <div class="modal-content" style="width: auto;">

                <!-- Modal Header -->
                <div class="modal-header">
                    <h5 class="modal-title text-primary">
                        <i class="fa fa-bar-chart" aria-hidden="true"></i>
                    </h5>
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                </div>

                <!-- Modal body -->
                <div id="plotbox" class="modal-body">

                </div>

                <!-- Modal footer -->
                <div class="modal-footer">
                    <a href="" class="btn btn-info float-left" role="button" id="plot_download">Download</a>
                    <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
                </div>

            </div>
        </div>
    </div>
    <!-- -- plotbox wrapper ends---------------------------------- -->
    <!-- diff modal -->
    <div class="modal" id="diff_wrapper">
        <div class="modal-dialog">
            <div class="modal-content">

                <!-- Modal Header -->
                <div class="modal-header">
                    <h4 class="modal-title">    Diff between [1]
                        <strong>
                            <span id="diff-first">
                            </span>
                        </strong>
                        and [2]
                        <strong>
                            <span id="diff-second">
                            </span>
                        </strong>
                    </h4>
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
                </div>

                <!-- Modal body -->
                <div class="modal-body">

                    <hr>

                    <div>
                        <span class="bg-success text-white">Green text</span> -> exist in [2] but not in [1]
                        <br>
                        <span class="bg-danger text-white">Red text</span> -> exist in [1] but not in [2]
                    </div>

                    <hr>

                    <div id="diff-area" style="word-wrap: break-word;">
                    </div>
                </div>

                <!-- Modal footer -->
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
                </div>

            </div>
        </div>
    </div>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <!-- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-82999923-4"></script>
    <script>
     window.dataLayer = window.dataLayer || [];
     function gtag(){dataLayer.push(arguments);}
     gtag('js', new Date());

     gtag('config', 'UA-82999923-4');
    </script> -->
    <!-- -- diff wrapper ends---------------------------------- -->
    <script src="{% static 'website/bootstrap-4.1.0/js/jquery.min.js' %}"></script>
    <script src="{% static 'website/bootstrap-4.1.0/js/popper.min.js' %}"></script>
    <script src="{% static 'website/bootstrap-4.1.0/js/bootstrap.min.js' %}"></script>
    <script src="{% static 'website/js/codemirror.js'%}"></script>
    <script src="{% static 'website/js/javascript.js'%}"></script>
    <script src="{% static 'website/js/fullscreen.js'%}"></script>
    <script src="{% static 'website/js/placeholder.js'%}"></script>
    <script>
        var api_url = "{{ api_url }}";
    </script>
    <script src="{% static 'website/js/cloud.js' %}"></script>
    <script src="{% static 'website/js/jsdiff.js'%}"></script>
    {% csrf_token %}

<!-- JS for alert -->
    <script src="{% static 'website/js/cookiealert.js'%}"></script>
</body>

</html>