zurb-foundation

Node App works on Heroku Local but crashes on Heroku server. using simple Foundation template project

一世执手 提交于 2019-12-13 04:26:47
问题 I am trying to deploy a Foundation web app based on Yarn, Gulp and Node.js on Heroku. It works with heroku local web but crashes on the Heroku server. I have set the port correctly. I am trying to remove Browsersync and use gulp-connect instead. In my gulpfile.js I have set the connectHeroku task which is run after build. I have set the yarn start command in the environment for Heroku. Here is my gulp.babel.js : 'use strict'; import plugins from 'gulp-load-plugins'; import yargs from 'yargs';

Foundation 6 sticky FOUC

岁酱吖の 提交于 2019-12-13 04:22:35
问题 I have a sticky element with data-stick-to-bottom however when I refresh the page, it flashes at the top before sticking to the bottom. Is there a callback or a function to check if foundation is ready? 回答1: Solved the issue by adding: $(window).trigger('load.zf.sticky'); Before calling my showBanner function. 来源: https://stackoverflow.com/questions/52971831/foundation-6-sticky-fouc

asp button event inside foundation modal not firing

荒凉一梦 提交于 2019-12-13 01:18:45
问题 I have tried searching for a solution for this, but nothing seems to be working for me. My problem is pretty straightforward though (so, I think). I am using foundation with asp webforms and have a reveal modal window that fires when the page is loaded. Code: $(document).ready(function () { $('#myModal').foundation('reveal', 'open') }); The above works fine, however, any time I put an ASP button inside the modal (the one I am using, btnReset, redirects to a new page), clicking on it will not

How to get the callback of onload event for Orbit Slider of Foundation Zurb Framework

情到浓时终转凉″ 提交于 2019-12-12 23:28:00
问题 I need to resize the orbit div(the container in which orbit content resides)according to size of the current image. Currently it seems that it is taking the size of the largest image. Is it possible to get something on the lines of a onload event for orbit slider in Foundation 4. I could get a handle using the after-slide-change event and do the resizing for all images except the first image(of course it because the slide change is fired when the image changes from 1 to 2). $("#image-gallery

why does using “async” inside of “module.exports” cause: Type Error: “exports” is read-only

你说的曾经没有我的故事 提交于 2019-12-12 19:23:10
问题 I have the following, experimental code: //JS File which exports function consoletest(){ console.log("HelloRequire!") } function commonAJAXCall(){ return $.get('https://jsonplaceholder.typicode.com/todos/1', { }).then((response) => { response = JSON.stringify(response) console.log(response) console.log("AJAX happened") return response }) } module.exports = { doStuff: async () => { //await commonAJAXCall() consoletest() } } //JS File which imports let eventListeners = require('./lib

“Foundation - ReferenceError: primordials is not define when starting a foundation zurb project.”

我只是一个虾纸丫 提交于 2019-12-12 16:16:45
问题 Getting an error when creating a Foundation Zurb project. Tried to solve using the previous suggestions shown for other applications, but none are working. A post referenced updating elm, and I did so, however, it did not work. Additionally, I reviewed the closed issue for Gulp 3 (i am using gulp 4), but there was not viable fixes (Gulp 3 is broken on Node 12 #2324) or workarounds. $ foundation new --framework emails fs.js:27 const { Math, Object } = primordials; ^ ReferenceError: primordials

How can you manually toggle a Foundation 5 dropdown in javascript (inside an emberjs app)?

蹲街弑〆低调 提交于 2019-12-12 15:08:04
问题 I am having issues getting a dropdown to be bound properly in an ember js app because I have action handlers on click inside of the list and the foundation events are conflicting. Template name: <a data-dropdown="groupDrop" id="groupDropdownLink" class="button radius tiny success dropdown"> Move Selected To Group ({{selectedCount}}) </a> <br> <ul id="groupDrop" data-dropdown-content class="f-dropdown"> {{#each eventGroups}} <li {{action 'moveToGroup' this}}><a>{{name}}</a></li> {{/each}} </ul

100% Height Off-Canvas Foundation 5

一曲冷凌霜 提交于 2019-12-12 11:27:13
问题 I'm using Foundation and have a series of sections at height: 100%. I'm using the off-canvas menu but it's only matching the height of the first section / the viewport. So once I scroll, the off-canvas menu is no longer aligned to the height of the viewport. It's a similar issue to Foundation 5 off-canvas full height of device. I'm ending up with this: All good After scrolling down to next section I think it can be solved by to adding position: fixed to left-off-canvas-menu, but that's not

How do I make use of breakpoints in Zurb foundation 4?

对着背影说爱祢 提交于 2019-12-12 11:13:06
问题 I would like to have 3 breakpoints. Broadly speaking, I want to configure my grid for small, medium and large panes. Looking at the docs for foundations grid, example classnames are provided for "small" and "large". However, I suspect foundation can be more flexible then that. So I looked at the file _foundation-global.scss. Sure enough, it seems to have maths function and variables for a range of pane sizes. In the docs for grid, I can see classnames like 'small-12' and 'large-3'. Ideally I

Zurb Foundation Rails Topbar Nav black highlighting when hovering over nav link

我与影子孤独终老i 提交于 2019-12-12 09:40:00
问题 I'm having an issue with Zurb Foundation where hovering over the top navbar links highlights the menu in black by default. This is fine when using the default menu color #111, but is problematic when using other colors. What I want to do is prevent any highlighting at all. I don't want the colors to change at all when hovering over the menu. I have researched this problem for the past few days and have tried numerous changes in the files to no avail. I am new to coding and any help would be