Skip to content

Commit

Permalink
Move select2 to specific files
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhprabhakaran3 committed Jun 21, 2024
1 parent bcc6810 commit 0f8d38d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 35 deletions.
63 changes: 28 additions & 35 deletions corpus/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Give a small description in 3-4 sentences about the website -->
<meta name="description"
content="IEEE NITK is a student chapter of the IEEE Organisation belonging in the Bangalore R10 Section. IEEE NITK undertakes a lot of projects by its various SIGs which are formed and projects undertaken by students are futher applied to help solve daily world problems.">
content="IEEE NITK is a student chapter of the IEEE Organisation belonging in the Bangalore R10 Section. IEEE NITK undertakes a lot of projects by its various SIGs which are formed and projects undertaken by students are futher applied to help solve daily world problems.">
<!-- A small abstract idea about the website -->
<meta name="abstract" content="This Website is about IEEE NITK Student Chapter">
<!-- Important Keywords to be noted in the website -->
<meta name="keywords" content="IEEE, IEEE NITK, NITK Surathkal, NITK, Clubs in NITK, Technical Clubs in NITK, NITK Club Projects, Student Chapter Bangalore R10 Section">
<meta name="keywords"
content="IEEE, IEEE NITK, NITK Surathkal, NITK, Clubs in NITK, Technical Clubs in NITK, NITK Club Projects, Student Chapter Bangalore R10 Section">
<!-- Tell the spider to index the first page and other pages as well-->
<meta name="robots" content="index, follow">
<!-- How often should spiders come back to your page -->
Expand All @@ -29,7 +30,7 @@
<meta name="web_author" content="IEEE NITK">
<meta name="author" content="IEEE NITK">
<!-- Email ID -->
<meta name="contact" content="corpusieeenitk@gmail.com" />
<meta name="contact" content="corpusieeenitk@gmail.com"/>
<!-- Email ID to reply to -->
<meta name="reply-to" content="corpusieeenitk@gmail.com">

Expand All @@ -40,29 +41,29 @@
<!-- Rating for the page -->
<meta name="rating" content="general">
<!-- Content Type for the page -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<!-- Fixing viewport on mobile views -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">

<!-- Google Authorship Markup -->
<!-- Social: Facebook / Open Graph and Google+ / Schema.org -->
<meta property="fb:app_id" content="0011038251882641" />
<meta property="og:url" content="https://ieee.nitk.ac.in" />
<meta property="fb:app_id" content="0011038251882641"/>
<meta property="og:url" content="https://ieee.nitk.ac.in"/>
<meta property="og:title" itemprop="name" content="IEEE NITK | Corpus">
<meta property="og:image" itemprop="image" content="{% static 'img/ieee-nitk.png' %}">
<meta property="og:description" itemprop="description"
content="IEEE NITK is a student branch of IEEE located at NITK Surathkal dedicated to innovative projects and solutions. This is the official website of IEEE NITK">
content="IEEE NITK is a student branch of IEEE located at NITK Surathkal dedicated to innovative projects and solutions. This is the official website of IEEE NITK">
<meta property="og:site_name" content="IEEE NITK | Corpus">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="{% static 'img/icons/ms-icon-144x144.png' %}">
<meta name="theme-color" content="#ffffff">

<!-- Windows Tile Icons -->
<meta name="msapplication-TileColor" content="#0562DC">
<meta name="msapplication-square70x70logo" content="{% static 'img/icons/ms-icon-70x70.png' %}" />
<meta name="msapplication-square150x150logo" content="{% static 'img/icons/ms-icon-150x150.png' %}" />
<meta name="msapplication-wide310x150logo" content="{% static 'img/icons/ms-icon-310x150.png' %}" />
<meta name="msapplication-square310x310logo" content="{% static 'img/icons/ms-icon-310x310.png' %}" />
<meta name="msapplication-square70x70logo" content="{% static 'img/icons/ms-icon-70x70.png' %}"/>
<meta name="msapplication-square150x150logo" content="{% static 'img/icons/ms-icon-150x150.png' %}"/>
<meta name="msapplication-wide310x150logo" content="{% static 'img/icons/ms-icon-310x150.png' %}"/>
<meta name="msapplication-square310x310logo" content="{% static 'img/icons/ms-icon-310x310.png' %}"/>

<!-- Android Theme Color -->
<meta name="theme-color" content="#0562DC">
Expand Down Expand Up @@ -90,17 +91,17 @@
{% block style %}
{% endblock %}
{% if USE_TAILWIND_CDN_LINK %}
<script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio"></script>
<script>
tailwind.config = {
daisyui: {
themes: ["winter", "night", "synthwave", "sunset"]
},
darkMode: ['class', '[data-theme="night"]']
}
</script>
<script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio"></script>
<script>
tailwind.config = {
daisyui: {
themes: ["winter", "night", "synthwave", "sunset"]
},
darkMode: ['class', '[data-theme="night"]']
}
</script>
{% endif %}
<link rel="stylesheet" href="{% static 'css/tailwind-min.css' %}" />
<link rel="stylesheet" href="{% static 'css/tailwind-min.css' %}"/>
<style>
body,
html {
Expand All @@ -109,18 +110,16 @@
font-family: 'Ubuntu', sans-serif;
}
</style>
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
</head>

<body>
<div class="lg:hidden">
{% include "components/navbar_small.html" %}
</div>
<div class="lg:hidden">
{% include "components/navbar_small.html" %}
</div>

<div class="hidden lg:block">
{% include "components/navbar_large.html" %}
</div>
<div class="hidden lg:block">
{% include "components/navbar_large.html" %}
</div>

{% if messages %}
{% for message in messages %}
Expand Down Expand Up @@ -178,12 +177,6 @@
}
}, intervalDuration);
}

// This makes EVERY select box searchable. There might be
// some adverse cases, which have to be studied and noted.
$("select").each(function() {
$(this).select2();
})
</script>

{% block script %}
Expand Down
11 changes: 11 additions & 0 deletions corpus/templates/virtual_expo/admin/manage.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
{% endblock %}

{% block content %}
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet"/>
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>

{% include "virtual_expo/header.html" with text="Manage Report" %}
<div class="m-10">
<div class="p-5 border rounded-lg">
Expand Down Expand Up @@ -195,4 +198,12 @@ <h1 class="text-2xl font-bold">Members</h1>
</form>
</div>
</div>

<script>
$(document).ready(function () {
$("select").each(function () {
$(this).select2();
});
});
</script>
{% endblock %}

0 comments on commit 0f8d38d

Please sign in to comment.