debshots/app/assets/javascripts/debshots.js
2025-04-11 09:39:33 +02:00

47 lines
1.3 KiB
JavaScript

// Entry point for the build script in your package.json
// import "@hotwired/turbo-rails";
// import "jquery";
// import "foundation-sites";
// import 'foundation-sites/dist/css/foundation.min.css'; // CSS
// import "./controllers";
// // Entry point for the build script in your package.json
// import "./jquery/dist/jquery.min.js";
// import $ from './node_modules/jquery/dist/jquery.min.js';
// import jQuery from "../../jquery/dist/jquery.min.js"; // Direct file path
// window.$ = window.jQuery = jQuery; // Expose globally (if needed)
// import "./foundation-sites/dist/js/foundation.min";
import "./controllers";
import "@hotwired/turbo-rails";
import jQuery from "./jquery.js";
// window.jQuery = jquery;
window.$ = jQuery;
$(function () {
$(document).foundation();
});
// Load reviews on package's details page
// load_reviews = function() {
// // Display message while loading reviews
// // $('#reviews').html("<i>Loading reviews...</i>");
// // Hide the DIV so that in can be faded in later
// $('#reviews').hide();
// // The URL is specified in the #reviews's DIV data attribute
// var url = $('#reviews').attr('data-package-reviews-url');
// $('#reviews').load(url, null,
// // Fade in the reviews as soon as the DIV is loaded and filled
// function(){
// $(this).fadeIn('slow')
// }
// );
// };