Download pool/shard005/JavaScript/0031223_freelancer.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 2.28 kB
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard005/JavaScript/0031223_freelancer.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard005/JavaScript/0031223_freelancer.js
-
curl -L -o 0031223_freelancer.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard005/JavaScript/0031223_freelancer.js
2.28 kB
| /*! | |
| * Start Bootstrap - Freelancer Bootstrap Theme (http://startbootstrap.com) | |
| * Code licensed under the Apache License v2.0. | |
| * For details, see http://www.apache.org/licenses/LICENSE-2.0. | |
| */ | |
| lightbox.option({ | |
| 'albumLabel': '%1/%2' | |
| }); | |
| // jQuery for page scrolling feature - requires jQuery Easing plugin | |
| $(function() { | |
| $('.page-scroll a').bind('click', function(event) { | |
| var $anchor = $(this); | |
| $('html, body').stop().animate({ | |
| scrollTop: $($anchor.attr('href')).offset().top | |
| }, 1500, 'easeInOutExpo'); | |
| event.preventDefault(); | |
| }); | |
| // Initialize WOW.js Scrolling Animations | |
| new WOW().init(); | |
| }); | |
| // Floating label headings for the contact form | |
| $(function() { | |
| $("body").on("input propertychange", ".floating-label-form-group", function(e) { | |
| $(this).toggleClass("floating-label-form-group-with-value", !! $(e.target).val()); | |
| }).on("focus", ".floating-label-form-group", function() { | |
| $(this).addClass("floating-label-form-group-with-focus"); | |
| }).on("blur", ".floating-label-form-group", function() { | |
| $(this).removeClass("floating-label-form-group-with-focus"); | |
| }).on("click", ".cs-options li", function(){ | |
| $(this).closest(".cs-select").addClass("done"); | |
| }); | |
| $('form').on('submit', function(e){ | |
| e.preventDefault(); | |
| if (this.checkValidity()) { | |
| $form = $(this); | |
| $button = $form.find('button'); | |
| $button.html('<i class="fa fa-spin fa-spinner"></i>'); | |
| $.ajax({ | |
| url: this.action, | |
| type: "POST", | |
| data: $(this).serialize(), | |
| dataType: "json" | |
| }).done(function (data) { | |
| $form.find('input:visible, textarea').val(''); | |
| $('.cs-placeholder').each(function () { | |
| $(this).html($(this).next().next().find('option:first').html()); | |
| $(this).closest(".cs-select").removeClass("done"); | |
| }); | |
| $button.html($button.data('sent-text')).addClass('sent'); | |
| }); | |
| } | |
| }); | |
| }); | |
| // Highlight the top nav as scrolling occurs | |
| $('body').scrollspy({ | |
| target: '.navbar-fixed-top' | |
| }) | |
| // Closes the Responsive Menu on Menu Item Click | |
| $('.navbar-collapse ul li a').click(function() { | |
| $('.navbar-toggle:visible').click(); | |
| }); | |