How to get bullets to work properly in glidejsHow do JavaScript closures work?How to horizontally center a <div>?How do I check if an element is hidden in jQuery?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I redirect to another webpage?How to check whether a checkbox is checked in jQuery?I need an unordered list without any bulletsHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?
In Russian, how do you idiomatically express the idea of the figurative "overnight"?
SafeCracker #3 - We've Been Blocked
Will 700 more planes a day fly because of the Heathrow expansion?
What does this wavy downward arrow preceding a piano chord mean?
Something that can be activated/enabled
What are the advantages of luxury car brands like Acura/Lexus over their sibling non-luxury brands Honda/Toyota?
29er Road Tire?
Manager is threatening to grade me poorly if I don't complete the project
How to increase the size of the cursor in Lubuntu 19.04?
Wrong answer from DSolve when solving a differential equation
Causes of bimodal distributions when bootstrapping a meta-analysis model
Would glacier 'trees' be plausible?
What is a smasher?
Point of the Dothraki's attack in GoT S8E3?
Why does sound not move through a wall?
List of newcommands used
What was the first story to feature the plot "the monsters were human all along"?
How to adjust tikz picture so it fits to current size of a table cell?
Frequency of specific viral sequence in .BAM or .fastq
Can I use a fetch land to shuffle my deck while the opponent has Ashiok, Dream Render in play?
Where can I go to avoid planes overhead?
Is there an official reason for not adding a post-credits scene?
What is the solution to this metapuzzle from a university puzzling column?
Pressure inside an infinite ocean?
How to get bullets to work properly in glidejs
How do JavaScript closures work?How to horizontally center a <div>?How do I check if an element is hidden in jQuery?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I redirect to another webpage?How to check whether a checkbox is checked in jQuery?I need an unordered list without any bulletsHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm trying to use glidejs as the slider on a website, however I can't get the bullets to work properly. The bullets are at the bottom of the example on glidejs' website on this page: https://glidejs.com/docs/options/ On my site, the bullets show up, but clicking on them does not change the slide. I haven't found any documentation for options that need to be passed in the initialization of glidejs to make these work. As far as I can tell from the glidejs site, initializing glide should make this work automatically. Everything else I have done works as expected, such as having the slides change on a timer and also having the arrow navigation for next and previous slides. I have the init code in a file called glideInit.js that looks like this:
document.addEventListener("DOMContentLoaded", function()
var glide = new Glide('#slider',
type : 'carousel',
perView : 1,
focusAt : 'center',
breakpoints :
800 :
perView : 1
,
480 :
perView : 1
,
autoplay: 5000
);
glide.mount();
);
function startTimer()
setInterval(function()
forward('slideForward');
, 5000);
Here is the html I have for the slider:
<div id="slider" class="glide">
<div class="glide__track" data-glide-el="track">
<div class="glide__slides">
% for entry in entries %
% set url = entry.slideBackgroundImage.first().getUrl() %
<div class="hero -homepage glide__slide">
<div class="container">
<h1 class="hero__title -homepage"><a href=" entry.url " class="title-link"> entry.title </a></h1>
<div class="hero__row">
<div class="override-redactor">
<a href=" entry.url "> entry.slideExcerpt </a>
</div>
</div>
</div>
</div>
% endfor %
</div>
</div>
<div class="glide__arrows" data-glide-el="controls">
<button id="slideBack" class="glide__arrow glide__arrow--left" data-glide-dir="<"><</button>
<button id="slideForward" class="glide__arrow glide__arrow--right" data-glide-dir=">">></button>
</div>
<div class="glide__bullets" data-guide-el="controls[nav]">
<button class="glide__bullet" data-glide-dir="=0"></button>
<button class="glide__bullet" data-glide-dir="=1"></button>
</div>
</div>
javascript html glidejs
add a comment |
I'm trying to use glidejs as the slider on a website, however I can't get the bullets to work properly. The bullets are at the bottom of the example on glidejs' website on this page: https://glidejs.com/docs/options/ On my site, the bullets show up, but clicking on them does not change the slide. I haven't found any documentation for options that need to be passed in the initialization of glidejs to make these work. As far as I can tell from the glidejs site, initializing glide should make this work automatically. Everything else I have done works as expected, such as having the slides change on a timer and also having the arrow navigation for next and previous slides. I have the init code in a file called glideInit.js that looks like this:
document.addEventListener("DOMContentLoaded", function()
var glide = new Glide('#slider',
type : 'carousel',
perView : 1,
focusAt : 'center',
breakpoints :
800 :
perView : 1
,
480 :
perView : 1
,
autoplay: 5000
);
glide.mount();
);
function startTimer()
setInterval(function()
forward('slideForward');
, 5000);
Here is the html I have for the slider:
<div id="slider" class="glide">
<div class="glide__track" data-glide-el="track">
<div class="glide__slides">
% for entry in entries %
% set url = entry.slideBackgroundImage.first().getUrl() %
<div class="hero -homepage glide__slide">
<div class="container">
<h1 class="hero__title -homepage"><a href=" entry.url " class="title-link"> entry.title </a></h1>
<div class="hero__row">
<div class="override-redactor">
<a href=" entry.url "> entry.slideExcerpt </a>
</div>
</div>
</div>
</div>
% endfor %
</div>
</div>
<div class="glide__arrows" data-glide-el="controls">
<button id="slideBack" class="glide__arrow glide__arrow--left" data-glide-dir="<"><</button>
<button id="slideForward" class="glide__arrow glide__arrow--right" data-glide-dir=">">></button>
</div>
<div class="glide__bullets" data-guide-el="controls[nav]">
<button class="glide__bullet" data-glide-dir="=0"></button>
<button class="glide__bullet" data-glide-dir="=1"></button>
</div>
</div>
javascript html glidejs
add a comment |
I'm trying to use glidejs as the slider on a website, however I can't get the bullets to work properly. The bullets are at the bottom of the example on glidejs' website on this page: https://glidejs.com/docs/options/ On my site, the bullets show up, but clicking on them does not change the slide. I haven't found any documentation for options that need to be passed in the initialization of glidejs to make these work. As far as I can tell from the glidejs site, initializing glide should make this work automatically. Everything else I have done works as expected, such as having the slides change on a timer and also having the arrow navigation for next and previous slides. I have the init code in a file called glideInit.js that looks like this:
document.addEventListener("DOMContentLoaded", function()
var glide = new Glide('#slider',
type : 'carousel',
perView : 1,
focusAt : 'center',
breakpoints :
800 :
perView : 1
,
480 :
perView : 1
,
autoplay: 5000
);
glide.mount();
);
function startTimer()
setInterval(function()
forward('slideForward');
, 5000);
Here is the html I have for the slider:
<div id="slider" class="glide">
<div class="glide__track" data-glide-el="track">
<div class="glide__slides">
% for entry in entries %
% set url = entry.slideBackgroundImage.first().getUrl() %
<div class="hero -homepage glide__slide">
<div class="container">
<h1 class="hero__title -homepage"><a href=" entry.url " class="title-link"> entry.title </a></h1>
<div class="hero__row">
<div class="override-redactor">
<a href=" entry.url "> entry.slideExcerpt </a>
</div>
</div>
</div>
</div>
% endfor %
</div>
</div>
<div class="glide__arrows" data-glide-el="controls">
<button id="slideBack" class="glide__arrow glide__arrow--left" data-glide-dir="<"><</button>
<button id="slideForward" class="glide__arrow glide__arrow--right" data-glide-dir=">">></button>
</div>
<div class="glide__bullets" data-guide-el="controls[nav]">
<button class="glide__bullet" data-glide-dir="=0"></button>
<button class="glide__bullet" data-glide-dir="=1"></button>
</div>
</div>
javascript html glidejs
I'm trying to use glidejs as the slider on a website, however I can't get the bullets to work properly. The bullets are at the bottom of the example on glidejs' website on this page: https://glidejs.com/docs/options/ On my site, the bullets show up, but clicking on them does not change the slide. I haven't found any documentation for options that need to be passed in the initialization of glidejs to make these work. As far as I can tell from the glidejs site, initializing glide should make this work automatically. Everything else I have done works as expected, such as having the slides change on a timer and also having the arrow navigation for next and previous slides. I have the init code in a file called glideInit.js that looks like this:
document.addEventListener("DOMContentLoaded", function()
var glide = new Glide('#slider',
type : 'carousel',
perView : 1,
focusAt : 'center',
breakpoints :
800 :
perView : 1
,
480 :
perView : 1
,
autoplay: 5000
);
glide.mount();
);
function startTimer()
setInterval(function()
forward('slideForward');
, 5000);
Here is the html I have for the slider:
<div id="slider" class="glide">
<div class="glide__track" data-glide-el="track">
<div class="glide__slides">
% for entry in entries %
% set url = entry.slideBackgroundImage.first().getUrl() %
<div class="hero -homepage glide__slide">
<div class="container">
<h1 class="hero__title -homepage"><a href=" entry.url " class="title-link"> entry.title </a></h1>
<div class="hero__row">
<div class="override-redactor">
<a href=" entry.url "> entry.slideExcerpt </a>
</div>
</div>
</div>
</div>
% endfor %
</div>
</div>
<div class="glide__arrows" data-glide-el="controls">
<button id="slideBack" class="glide__arrow glide__arrow--left" data-glide-dir="<"><</button>
<button id="slideForward" class="glide__arrow glide__arrow--right" data-glide-dir=">">></button>
</div>
<div class="glide__bullets" data-guide-el="controls[nav]">
<button class="glide__bullet" data-glide-dir="=0"></button>
<button class="glide__bullet" data-glide-dir="=1"></button>
</div>
</div>
javascript html glidejs
javascript html glidejs
edited Mar 23 at 3:41
Cœur
19.6k10117157
19.6k10117157
asked Mar 22 at 23:50
Frank A.Frank A.
8211813
8211813
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
After taking a break from this problem and coming back to it, I stumbled on the specific method that does this in glide.js. Once a glide object is created, you can call
glide.go('=<slide_number>');
where <slide_number>
is replaced by an integer, e.g. glide.go('=2')
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55309192%2fhow-to-get-bullets-to-work-properly-in-glidejs%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
After taking a break from this problem and coming back to it, I stumbled on the specific method that does this in glide.js. Once a glide object is created, you can call
glide.go('=<slide_number>');
where <slide_number>
is replaced by an integer, e.g. glide.go('=2')
add a comment |
After taking a break from this problem and coming back to it, I stumbled on the specific method that does this in glide.js. Once a glide object is created, you can call
glide.go('=<slide_number>');
where <slide_number>
is replaced by an integer, e.g. glide.go('=2')
add a comment |
After taking a break from this problem and coming back to it, I stumbled on the specific method that does this in glide.js. Once a glide object is created, you can call
glide.go('=<slide_number>');
where <slide_number>
is replaced by an integer, e.g. glide.go('=2')
After taking a break from this problem and coming back to it, I stumbled on the specific method that does this in glide.js. Once a glide object is created, you can call
glide.go('=<slide_number>');
where <slide_number>
is replaced by an integer, e.g. glide.go('=2')
answered Mar 29 at 23:23
Frank A.Frank A.
8211813
8211813
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55309192%2fhow-to-get-bullets-to-work-properly-in-glidejs%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown