Skip to content

Commit

Permalink
Fix selectbox css in webinar page (#77)
Browse files Browse the repository at this point in the history
Co-authored-by: Tamal Saha <tamal@appscode.com>
Signed-off-by: Mohin Uddin <mohin@appscode.com>
  • Loading branch information
mohin7 and tamalsaha authored Apr 19, 2021
1 parent 70eee28 commit f096fa1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 25 deletions.
26 changes: 5 additions & 21 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@
<link rel="stylesheet" href="/assets/css/bulma-carousel.min.css" />
<!-- Bulma tooltip CSS -->
<link rel="stylesheet" href="/assets/css/bulma-tooltip.min.css" />
<!-- Slim Select CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.27.0/slimselect.min.css">
<!-- Bulma CSS -->
<link rel="stylesheet" href="/assets/css/bulma.min.css" />
{{ block "head-footer" . }}
{{ end }}
<!-- Custom CSS -->
<!-- {{ with $style := resources.Get "assets/sass/main.scss" | resources.ToCSS | resources.PostCSS | resources.Minify | resources.Fingerprint }}
{{ with $style := resources.Get "assets/sass/main.scss" | resources.ToCSS | resources.PostCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
{{ end }} -->
<link rel="stylesheet" href="/assets/sass/main.css" />
{{ end }}
<!-- <link rel="stylesheet" href="/assets/sass/main.css" /> -->
</head>

<body {{if $productName}}class="{{$productName}}" {{end}}>
Expand Down Expand Up @@ -694,22 +694,6 @@ <h4>Legal</h4>
<script src="https://unpkg.com/downloadjs@1.4.7/download.min.js"></script>
<!-- clipboard js -->
<script src="https://unpkg.com/clipboard@2/dist/clipboard.min.js"></script>
<!-- Slim Select JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.27.0/slimselect.min.js"></script>
<!-- initilize Slim Select -->
<script type="text/javascript">
if (document.querySelector('.ac-custom-select')) {
new SlimSelect({
select: '.ac-custom-select'
});
new SlimSelect({
select: '#experience_level'
});
new SlimSelect({
select: '#marketing_reach'
})
}
</script>
<!-- Main JS -->
<script src="/assets/js/main.js"></script>

Expand Down
32 changes: 28 additions & 4 deletions layouts/_default/webinar.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
{{ define "head-footer" }}
<!-- Slim Select CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.27.0/slimselect.min.css">
{{ end }}

{{ define "main" }}
<!-- hero area start -->
<section class="hero-area-2 webinar-page">
Expand Down Expand Up @@ -117,7 +122,7 @@ <h3>Register Now</h3>
<!-- single input field end -->
<!-- single input field start -->
<div class="single-input-form">
<label for="company">Schedule <span class="is-require">*</span></label>
<label for="company">Pick a Date <span class="is-require">*</span></label>
<select class="ac-custom-select" id="schedule" name="schedule" required>
</select>
<!-- if error occured -->
Expand Down Expand Up @@ -194,6 +199,26 @@ <h3>Register Now</h3>
</section>
<!-- hero area end -->

<!-- Slim Select JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.27.0/slimselect.min.js"></script>
<!-- initilize Slim Select -->
<script type="text/javascript">
if (document.querySelector('.ac-custom-select')) {
new SlimSelect({
select: '#schedule'
});
new SlimSelect({
select: '#cluster_provider'
});
new SlimSelect({
select: '#experience_level'
});
new SlimSelect({
select: '#marketing_reach'
});
}
</script>

<script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script>
<script type="text/javascript">
function countdown(endDate) {
Expand Down Expand Up @@ -369,8 +394,6 @@ <h5>Tamal Saha</h5>
</section>
<!-- summary area start -->



{{ end }}

{{ define "testimonial" }}
Expand All @@ -383,4 +406,5 @@ <h5>Tamal Saha</h5>

{{ define "cta-install" }}
<section></section>
{{ end }}

{{ end }}

0 comments on commit f096fa1

Please sign in to comment.