-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Faisal N
committed
Oct 12, 2023
1 parent
f50767c
commit df5e65f
Showing
6 changed files
with
116 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
<script> | ||
var domain = "<%- vars.domain %>"; | ||
var page = window.location.toString().split(`${domain}`)[1].split("?")[0]; | ||
</script> | ||
<script src="<%- vars.domain %>/js/scripts.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.11.4/js/lightbox-plus-jquery.min.js" integrity="sha512-U9dKDqsXAE11UA9kZ0XKFyZ2gQCj+3AwZdBMni7yXSvWqLFEj8C1s7wRmWl9iyij8d5zb4wm56j4z/JVEwS77g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> | ||
<script src="<%- vars.domain %>/js/lightbox-plus-jquery.min.js"></script> | ||
<script src="<%- vars.domain %>/js/jquery.fittext.js"></script> | ||
<script src="<%- vars.domain %>/js/scripts.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/*global jQuery */ | ||
/*! | ||
* FitText.js 1.2 | ||
* | ||
* Copyright 2011, Dave Rupert http://daverupert.com | ||
* Released under the WTFPL license | ||
* http://sam.zoy.org/wtfpl/ | ||
* | ||
* Date: Thu May 05 14:23:00 2011 -0600 | ||
*/ | ||
|
||
(function( $ ){ | ||
|
||
$.fn.fitText = function( kompressor, options ) { | ||
|
||
// Setup options | ||
var compressor = kompressor || 1, | ||
settings = $.extend({ | ||
'minFontSize' : Number.NEGATIVE_INFINITY, | ||
'maxFontSize' : Number.POSITIVE_INFINITY | ||
}, options); | ||
|
||
return this.each(function(){ | ||
|
||
// Store the object | ||
var $this = $(this); | ||
|
||
// Resizer() resizes items based on the object width divided by the compressor * 10 | ||
var resizer = function () { | ||
$this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize))); | ||
}; | ||
|
||
// Call once to set. | ||
resizer(); | ||
|
||
// Call on resize. Opera debounces their resize by default. | ||
$(window).on('resize.fittext orientationchange.fittext', resizer); | ||
|
||
}); | ||
|
||
}; | ||
|
||
})( jQuery ); |
Oops, something went wrong.