Converting floats to absolute positioning - jquery-animate

I have a monopoly board and I'd like to move a unicode piece around the board smoothly, like with a jQuery.animate method.
Q: Do I have to go to canvas to have a smooth player moving experience, or can I use some sort of absolute positioning instead?
Right now I'm using floats to float the squares that are the board.
window.dom = {} // Document Object Model
var column = 1
var row = 2
function roll() {
return Math.floor(Math.random() * 6) + 1
}
$('#partA .bottomHeader:eq(0)').append('<img src="//Lenoir-Rhyne.com/emoji/hotel.png" width="25">')
$('#partA .bottomHeader:eq(1)').append('<img src="//Lenoir-Rhyne.com/emoji/house.png" width="25">')
;(function() {
var Variables = {}
Variables.die1 = roll()
Variables.die2 = roll()
Variables.die1 = 1000 /* While testing */
Variables.Counter = 0
placePosition()
function MoveMe1() {
$('#Player1').remove()
if (row == 11 && column != 1) {
column = column - 1
} else if (column == 1 && row != 1) {
row = row - 1
} else if (row == 1 && column != 11) {
column = column + 1
} else if (column == 11) {
row = row + 1
}
placePosition()
}
function placePosition() {
if (row == 1) {
$('#partA .property:eq(' + (column-1) + ')').append('<div id="Player1">♛</div>');
} else if (column == 1 && row > 1) {
$('#partB .property:eq(' + (row-2) + ')').append('<div id="Player1">♛</div>');
} else if (column == 11 && row > 1 && row < 11) {
$('#partC .property:eq(' + (row-2) + ')').append('<div id="Player1">♛</div>');
} else if (row == 11 && column > 1) {
$('#partD .property:eq(' + (column-1) + ')').append('<div id="Player1">♛</div>');
}
Variables.Counter += 1
if (Variables.Counter < Variables.die1 + Variables.die2) {
setTimeout(MoveMe1,1000)
}
log(row + ',' + column)
}
})()
#partA .square {
float:left;
}
#partA .property {
height:44px;
}
#partB, #partC {
float:left;
width:9%;
}
#partB .square, #partC .square {
width:100%;
}
#partD {
clear:left;
}
#partD .square {
float:left;
}
#center {
width:81%;
float:left;
}
#SaveArea {
float:left;
width:30%;
margin-left:1%;
margin-top:1em;
}
.form-group {
margin-bottom:0px;
}
.red {
background-color:#ED1B24 /* Change this to ED1B24 */
}
.green {
background-color:#1FB25A /* Change this to 1FB25A */
}
.blue {
background-color:#0072BB /* Change this to 0072BB */
}
.purple {
background-color:#130C5B
}
.lightBlue {
background-color:#AAE0FA
}
.pink {
background-color:#D93A96
}
.orange {
background-color:#F7941D
}
.yellow {
background-color:#FEF200
}
#partA > div, #partB > div, #partC > div, #partD > div {
width:9%;
outline:1px solid black;
height:100px;
font-size:16px;
background-repeat:no-repeat;
background-position:bottom;
}
.bottomHeader {
margin-top:35px;
outline-top:2px solid black;
}
.property:hover {
cursor:pointer;
background-color:#3E3433;
color:white;
}
.bottomHeader:hover, .topHeader:hover, .leftHeader:hover, .rightHeader:hover {
cursor:pointer;
background-color:#3E3433;
color:white;
}
.leftHeader {
height:100px;
width:24px;
float:left;
margin-right:3px;
outline-right:2px solid black;
}
.rightHeader {
height:100px;
width:24px;
float:right;
outline-left:2px solid black;
}
.topHeader {
outline-bottom:2px solid black;
}
.property {
margin-left:3px;
}
.communityChest {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/CommunityChest.jpg);
}
.chance1 {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/Chance1.jpg);
}
.chance2 {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/Chance2.jpg);
}
.chance3 {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/Chance3.jpg);
}
.railroad1 {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/RR1.jpg);
}
.railroad2 {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/RR2.jpg);
}
.railroad3 {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/RR3.jpg);
}
.railroad4 {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/RR4.jpg);
}
.electricCompany {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/Electric.jpg);
}
.waterWorks {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/WaterWorks.jpg);
}
.luxuryTax {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/LuxuryTax.jpg);
}
.jail {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/Jail.jpg);
}
.gotoJail {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/gotoJail.jpg);
}
.GO {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/GO.jpg);
}
.freeParking {
background-image:url(//Lenoir-Rhyne.com/2014Fall2/Monopoly/FreeParking.jpg);
}
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/latest/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/latest/css/bootstrap-theme.css">
<link rel="stylesheet" href="http://lenoir-rhyne.com/2014Fall2/Inc/css/fw.css">
<link rel="stylesheet" href="//lenoir-rhyne.com/2014Fall2/Inc/css/Lenoir-Rhyne.css">
<link rel="stylesheet" href="//lenoir-rhyne.com/2014Fall2/Monopoly/Monopoly.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.2/modernizr.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<nav class="nav navbar-default navbar-fixed-top">
<div class="navbar-inverse">
<div class="container">
<div class="navbar-header"> <a class="navbar-brand glyphicon glyphicon-home" href="/"></a> </div>
<div class="navbar-collapse collapse">
<div class="navbar-right">
<ul class="nav navbar-nav">
<li class="dropdown">
Phillip <span class="caret"></span>
<ul class="dropdown-menu" role="menu">
<li>
Profile
</li>
<li class="divider">
</li>
<li>
Logout
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="msg container label-info"> Change the names of Kentucky, Indiana, Illinois, Atlantic, Ventnor and Marvin Gardens. </div>
</nav>
<main role="main" class="container-fluid">
<div id="partA">
<div class="square freeParking">
<div class="property">FREE PARKING</div>
</div>
<div class="square">
<div class="property">KENTUCKY AVENUE</div>
<div class="bottomHeader red"> </div>
</div>
<div class="square chance2">
<div class="property">CHANCE</div>
</div>
<div class="square">
<div class="property">INDIANA AVENUE</div>
<div class="bottomHeader red"> </div>
</div>
<div class="square">
<div class="property">ILLINOIS AVENUE</div>
<div class="bottomHeader red"> </div>
</div>
<div class="square railroad3">
<div class="property">B & O RAILROAD</div>
</div>
<div class="square">
<div class="property">ATLANTIC AVENUE</div>
<div class="bottomHeader yellow"> </div>
</div>
<div class="square">
<div class="property">VENTNOR AVENUE</div>
<div class="bottomHeader yellow"> </div>
</div>
<div class="square waterWorks">
<div class="property">WATER WORKS</div>
</div>
<div class="square ">
<div class="property">MARVIN GARDENS</div>
<div class="bottomHeader yellow"> </div>
</div>
<div class="square gotoJail">
<div class="property">GO TO JAIL</div>
</div>
</div>
</div>
<div id="partB">
<div class="square"> <span class="rightHeader orange"> </span>
<div class="property">NEW YORK AVENUE</div>
</div>
<div class="square"> <span class="rightHeader orange"> </span>
<div class="property">TENN ESSEE AVENUE</div>
</div>
<div class="square communityChest">
<div class="property">COMMUNITY CHEST</div>
</div>
<div class="square"> <span class="rightHeader orange"> </span>
<div class="property">ST. JAMES PLACE</div>
</div>
<div class="square railroad2">
<div class="property">PENN SYLVANIA RAILROAD</div>
</div>
<div class="square"> <span class="rightHeader pink"> </span>
<div class="property">VIRGINIA AVENUE</div>
</div>
<div class="square"> <span class="rightHeader pink"> </span>
<div class="property">STATES AVENUE</div>
</div>
<div class="square electricCompany">
<div class="property">ELECTRIC COMPANY</div>
</div>
<div class="square"> <span class="rightHeader pink"> </span>
<div class="property">ST. CHARLES PLACE</div>
</div>
</div>
<div id="center"> </div>
<div id="partC"> <!-- right column -->
<div class="square"> <span class="leftHeader green"> </span>
<div class="property">PACIFIC AVENUE</div>
</div>
<div class="square"> <span class="leftHeader green"> </span>
<div class="property">NORTH CAROLINA AVENUE</div>
</div>
<div class="square communityChest">
<div class="property">COMMUNITY CHEST</div>
</div>
<div class="square"> <span class="leftHeader green"> </span>
<div class="property">PENN SYLVANIA AVENUE</div>
</div>
<div class="square railroad4">
<div class="property">SHORT LINE</div>
</div>
<div class="square chance3">
<div class="property">CHANCE</div>
</div>
<div class="square"> <span class="leftHeader blue"> </span>
<div class="property">PARK PLACE</div>
</div>
<div class="square luxuryTax">
<div class="property">LUXURY TAX</div>
</div>
<div class="square"> <span class="leftHeader blue"> </span>
<div class="property">BOARD WALK</div>
</div>
</div>
<div id="partD"> <!-- bottom row -->
<div class="square jail">
<div class="property">JUST VISITING</div>
</div>
<div class="square">
<div class="topHeader lightBlue"> </div>
<div class="property">CONNECTICUT AVENUE</div>
</div>
<div class="square">
<div class="topHeader lightBlue"> </div>
<div class="property">VERMONT AVENUE</div>
</div>
<div class="square chance1">
<div class="property">CHANCE</div>
</div>
<div class="square">
<div class="topHeader lightBlue"> </div>
<div class="property">ORIENTAL AVENUE</div>
</div>
<div class="square railroad1">
<div class="property">READING RAILROAD</div>
</div>
<div class="square">
<div class="property">INCOME TAX</div>
</div>
<div class="square">
<div class="topHeader purple"> </div>
<div class="property">BALTIC AVENUE</div>
</div>
<div class="square communityChest">
<div class="property">COMMUNITY CHEST</div>
</div>
<div class="square">
<div class="topHeader purple"> </div>
<div class="property">MEDITER- RANEAN AVENUE</div>
</div>
<div class="square GO">
<div class="property">GO</div>
</div>
</div>
</main>
<div id="fw-home">/2014Fall2</div>
<div id="AnswerName" hidden>
<div class="square freeParking">
<div class="property">FREE PARKING</div>
</div>
<div class="square">
<div class="property">KENTUCKY AVENUE</div>
<div class="bottomHeader red"> </div>
non breaking space </div>
<div class="square chance2">
<div class="property">CHANCE</div>
</div>
<div class="square">
<div class="property">INDIANA AVENUE</div>
<div class="bottomHeader red"> </div>
</div>
<div class="square">
<div class="property">ILLINOIS AVENUE</div>
<div class="bottomHeader red"> </div>
</div>
<div class="square railroad3">
<div class="property">B & O RAILROAD</div>
</div>
<div class="square">
<div class="property">ATLANTIC AVENUE</div>
<div class="bottomHeader yellow"> </div>
</div>
<div class="square">
<div class="property">VENTNOR AVENUE</div>
<div class="bottomHeader yellow"> </div>
</div>
<div class="square waterWorks">
<div class="property">WATER WORKS</div>
</div>
<div class="square ">
<div class="property">MARVIN GARDENS</div>
<div class="bottomHeader yellow"> </div>
</div>
<div class="square gotoJail">
<div class="property">GO TO JAIL</div>
</div>
</div>
</div>
<script src="//cdn.jsdelivr.net/bootstrap/latest/js/bootstrap.js"></script>

You can use absolute positioning to move the pieces on the board smoothly, however there is a lot of JS involved with updating pieces. You would have to track piece's current location and update x and y coordinates correctly, OR you would have to have movement logic based on every location on the board, meaning every spot had it's own next movement logic.
Using canvas you can create a switch statement for each location:
X number of properties on board
switch(x){
case 1:
piece.moveTo(x, y); // next property position;
break;
case 2:
piece.moveTo(x, y); // next property position;
break;
}
I would advise probably the canvas method and take into account that the movement spacing has to stay relative to the board size.

Related

How to use bootstrap carousel in Vue.js

I am quite new in vue and I am trying to make a bootstrap carousel using bootstrap.
<template>
<!-- Start Banner Hero -->
<div
id="webshop-hero-carousel"
class="carousel slide"
data-bs-ride="carousel"
>
<ol class="carousel-indicators">
<li
data-bs-target="#webshop-hero-carousel"
data-bs-slide-to="0"
class="active"
></li>
<li
data-bs-target="#webshop-hero-carousel"
data-bs-slide-to="1"
></li>
<li
data-bs-target="#webshop-hero-carousel"
data-bs-slide-to="2"
></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item" v-for="picture in pictures" :key="'picture-' + picture.id">
<div class="container">
<div class="row p-5">
<div class="col-lg-6 mb-0 d-flex align-items-center">
<div class="text-align-left align-self-center">
<!-- <h1 class="h1 text-success"><b>Jassa</b> eCommerce</h1> -->
<h3 class="h2">{{picture.text}}</h3>
</div>
</div>
</div>
</div>
</div>
</div>
<a
class="carousel-control-prev text-decoration-none w-auto ps-3"
href="#webshop-hero-carousel"
role="button"
data-bs-slide="prev"
>
<i class="fas fa-chevron-left"></i>
</a>
<a
class="carousel-control-next text-decoration-none w-auto pe-3"
href="#webshop-hero-carousel"
role="button"
data-bs-slide="next"
>
<i class="fas fa-chevron-right"></i>
</a>
</div>
<!-- End Banner Hero -->
</template>
<script>
export default {
data() {
return {
pictures: [
{
id: 1,
text: "Freibad",
},
{
id: 2,
text: "Hallenbad",
},
],
};
},
};
</script>
So here is my component but it doesnt work properly. I basically just want to show {{picture.text}} on each carousel but it doesnt display anything properly.
None of the carousel-item elements are active.
You can control the "active" item programmatically using Vue. Here is one example:
new Vue({
el:"#app",
data: () => ({
pictures: [ { id: 1, text: "Freibad" }, { id: 2, text: "Hallenbad" } ],
active: 0
}),
methods: {
setActive(index) {
let active = index;
if(index === this.pictures.length) active = 0;
else if(index === -1) active = this.pictures.length - 1;
this.active = active;
}
}
});
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="app">
<div id="webshop-hero-carousel" class="carousel slide" data-bs-ride="carousel">
<ol class="carousel-indicators">
<li data-bs-target="#webshop-hero-carousel" data-bs-slide-to="0"></li>
<li data-bs-target="#webshop-hero-carousel" data-bs-slide-to="1"></li>
<li data-bs-target="#webshop-hero-carousel" data-bs-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div
v-for="(picture, index) in pictures"
:key="'picture-' + picture.id"
:class="{ 'carousel-item': true, 'active': index === active }"
>
<div class="container">
<div class="row p-5">
<div class="col-lg-6 mb-0 d-flex align-items-center">
<div class="text-align-left align-self-center">
<h3 class="h2">{{picture.text}}</h3>
</div>
</div>
</div>
</div>
</div>
</div>
<a class="carousel-control-prev text-decoration-none w-auto ps-3" href="#webshop-hero-carousel" role="button" data-bs-slide="prev" #click="setActive(active-1)">
<i class="fas fa-chevron-left"></i>
</a>
<a class="carousel-control-next text-decoration-none w-auto pe-3" href="#webshop-hero-carousel" role="button" data-bs-slide="next" #click="setActive(active+1)">
<i class="fas fa-chevron-right"></i>
</a>
</div>
</div>
I would also suggest taking a look at bootstrap-vue.

How to check different id (ref) for using one method in Vue JS

I am new in Vue. In my code I gonna use a lot of same looking container and all of them should have slider page. For now when I clicking on top of container all slider-pages is coming out. I am understand,I should add id(ref) to each container. But I still cant get how to use it. Huge Thanks for any help or advice.
<template>
<div #click="shotList" ref="123">
<span>
<div
class="d-flex flex-row top-row justify-content-center mt-5"
style="z-index: 111 !important"
>
<div class="flex-row d-flex top-size">
<span class="col text-left" style="margin-top: -2px"
>21:40-23:00</span
>
<span class="col-9 text-right" style="margin-top: -2px"
>UFC 256 MMA</span
>
</div>
</div>
<div
class="d-flex flex-row justify-content-center"
style="z-index: 111 !important"
>
<div class="flex-row d-flex bottom-size">
<span class="col-5 bottom-size-white">Habib</span>
<span class="col-2 bottom-size-green"
>5%
<p class="bottom-p">Volatility</p>
</span>
<span class="col-5 bottom-size-black">Connor</span>
</div>
</div>
</span>
<ListBase :title="[{ text: `3`, value: `2` }]" />
</div>
<div #click="shotList" ref="125">
<span>
<div
class="d-flex flex-row top-row justify-content-center mt-5"
style="z-index: 111 !important"
>
<div class="flex-row d-flex top-size">
<span class="col text-left" style="margin-top: -2px"
>21:40-23:00</span
>
<span class="col-9 text-right" style="margin-top: -2px"
>UFC 256 MMA</span
>
</div>
</div>
<div
class="d-flex flex-row justify-content-center"
style="z-index: 111 !important"
>
<div class="flex-row d-flex bottom-size">
<span class="col-5 bottom-size-white">Habib</span>
<span class="col-2 bottom-size-green"
>5%
<p class="bottom-p">Volatility</p>
</span>
<span class="col-5 bottom-size-black">Connor</span>
</div>
</div>
</span>
<ListBase :title="[{ text: `3`, value: `2` }]" />
</div>
</template>
<script>
export default {
name: "take",
data() {
return {
show: false,
};
},
methods: {
shotList() {
this.show = !this.show;
if (this.show) {
this.$emit("openList");
} else {
this.$emit("closeList");
}
},
spaceCheck(event) {
let x = event.pageX;
let y = event.pageY;
console.log(x, y);
},
},
};
</script>

SwiperJS Thumbs bug

Created a swipe with thumbs. When I click on thumbs, it scrolls to the right with incomprehensible logic. I cannot understand what this may be connected with, I am trying to solve this problem for the second day, nothing comes out. Is it possible to somehow disable this option so that you can remove this scroll when clicked?
const productThumbs = new Swiper(".swiper-thumbs", {
spaceBetween: 30,
loop: true,
slidesPerView: 6,
loopedSlides: 7,
});
const productCarousel = new Swiper(".swiper-content", {
effect: 'fade',
fadeEffect: {
crossFade: true
},
touchRatio: 0,
thumbs: {
swiper: productThumbs,
}
});
.swiper-slide{
background: gray;
}
.swiper-thumbs .swiper-slide{
height: 300px;
}
.swiper-content{
margin-top: 30px;
}
.swiper-thumbs .swiper-slide{
display: flex;
flex-direction: column;
}
.swiper-content .swiper-slide{
height: 250px;
background: black;
color: white;
font-size: 72px;
}
<link href="https://unpkg.com/swiper/swiper-bundle.min.css" rel="stylesheet"/>
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<div class="swiper-container swiper-thumbs">
<div class="swiper-wrapper">
<div class="swiper-slide">
<span class="slider-title">01</span>
<img src='https://i.ibb.co/Tq5Hvp8/1.png'>
<span class="slider-desc">Windows Server</span>
</div>
<div class="swiper-slide">
<span class="slider-title">02</span>
<img src='https://i.ibb.co/Tq5Hvp8/1.png'>
<span class="slider-desc">Windows Server</span>
</div>
<div class="swiper-slide">
<span class="slider-title">03</span>
<img src='https://i.ibb.co/Tq5Hvp8/1.png'>
<span class="slider-desc">Windows Server</span>
</div>
<div class="swiper-slide">
<span class="slider-title">04</span>
<img src='https://i.ibb.co/Tq5Hvp8/1.png'>
<span class="slider-desc">Windows Server</span>
</div>
<div class="swiper-slide">
<span class="slider-title">05</span>
<img src='https://i.ibb.co/Tq5Hvp8/1.png'>
<span class="slider-desc">Windows Server</span>
</div>
<div class="swiper-slide">
<span class="slider-title">06</span>
<img src='https://i.ibb.co/Tq5Hvp8/1.png'>
<span class="slider-desc">Windows Server</span>
</div>
</div>
<div class="swiper-button-prev"></div>
<div class="swiper-button-next"></div>
</div>
<div class="swiper-container swiper-content">
<!-- Additional required wrapper -->
<div class="swiper-wrapper">
<!-- Slides -->
<div class="swiper-slide">Slide 1</div>
<div class="swiper-slide">Slide 2</div>
<div class="swiper-slide">Slide 3</div>
<div class="swiper-slide">Slide 4</div>
<div class="swiper-slide">Slide 5</div>
<div class="swiper-slide">Slide 6</div>
</div>
</div>
I tried to do this, but I just simply do not understand why this is happening
In the "thumbs" slider, you need to change the value "loop" to "false" or remove the key "loop" from "thumbs" slider.

BigCommerce checkout display all steps uncollapsed in multiple rows

I am trying to modify the checkout page in our store, this question may be a little incomprehensive for the masters of the BigCommerce league, I apologize for this upfront. Also, similar questions to this question have been asked before but was never answered.
BigCommerce single checkout page (express checkout & optimized single page checkout) comes in multiple collapsed steps, I am trying to un-collapse the containers and make it look like a true single page checkout in three columns instead of steps being underneath each-other.
I know bigcommerce partners are offering similar solutions, I'm trying to find out which panels to modify. I would sincerely appreciate if someone can put a light on which files to modify in order to achieve the goal.
I can provide access to the staging store if required.
This is the default checkout_express.html file.
%%Panel.HTMLHead%%
<body>
<script type="text/javascript" src="%%GLOBAL_CdnAppPath%%/javascript/express.checkout.js?%%GLOBAL_JSCacheToken%%"></script>
%%Panel.DrawerMenu%%
<div class="page">
%%Panel.Header%%
<div class="main">
<div class="inner">
%%Panel.WrapperBanner%%
<div class="Content Widest" id="LayoutColumn1">
<!-- <h1 class="TitleHeading mbm">%%LNG_SecureCheckout%%</h1> -->
<h1 class="TitleHeading mbm">Secure Checkout</h1>
<div class="fullwidth">
<div class="Block ExpressCheckout">
<script type="text/javascript" src="%%GLOBAL_TPL_PATH%%/js/formfield.js?%%GLOBAL_JSCacheToken%%"></script>
<script type="text/javascript">
lang.LoginEnterValidEmail = "%%LNG_LoginEnterValidEmail%%";
lang.LoginEnterPassword = "%%LNG_LoginEnterPassword%%";
lang.AccountEnterPassword = "%%LNG_AccountEnterPassword%%";
lang.AccountPasswordsDontMatch = "%%LNG_AccountPasswordsDontMatch%%";
lang.AccountEnterFirstName = "%%LNG_AccountEnterFirstName%%";
lang.AccountEnterLastName = "%%LNG_AccountEnterLastName%%";
lang.EnterShippingFirstName = '%%LNG_EnterShippingFirstName%%';
lang.EnterShippingLastName = '%%LNG_EnterShippingLastName%%';
lang.EnterShippingAddress = "%%LNG_EnterShippingAddress%%";
lang.EnterShippingCity = "%%LNG_EnterShippingCity%%";
lang.ChooseShippingCountry = "%%LNG_ChooseShippingCountry%%";
lang.ChooseShippingState = "%%LNG_ChooseShippingState%%";
lang.EnterShippingZip = "%%LNG_EnterShippingZip%%";
lang.ExpressCheckoutStepBillingAddress = "%%LNG_ExpressCheckoutStepBillingAddress%%";
lang.ExpressCheckoutStepBillingAccountDetails = "Working?";
// lang.ExpressCheckoutStepBillingAccountDetails = "%%LNG_ExpressCheckoutStepBillingAccountDetails%%";
lang.ExpressCheckoutLoadError = "%%LNG_ExpressCheckoutLoadError%%";
lang.ExpressCheckoutCheckingOutAsGuest = "%%LNG_ExpressCheckoutCheckingOutAsGuest%%";
lang.ExpressCheckoutCreatingAnAccount = "%%LNG_ExpressCheckoutCreatingAnAccount%%";
lang.ExpressCheckoutChooseBilling = "%%LNG_ExpressCheckoutChooseBilling%%";
lang.ExpressCheckoutChooseShipping = "%%LNG_ExpressCheckoutChooseShipping%%";
lang.ExpressCheckoutChooseShipper = "%%LNG_ExpressCheckoutChooseShipper%%";
lang.ExpressCheckoutFor = "%%LNG_ExpressCheckoutFor%%";
lang.ExpressCheckoutLoading = "%%LNG_ExpressCheckoutLoading%%";
lang.ShippingMethodCombined = "%%LNG_ShippingMethodCombined%%";
lang.EnterShippingPhone = "%%LNG_EnterShippingPhone%%"
lang.EnterCouponCode = "%%LNG_EnterCouponCode%%";
lang.BillAndShipToAddress = "%%LNG_BillAndShipToAddress%%";
lang.BillToThisAddress = "%%LNG_BillToThisAddress%%";
lang.ShipToThisAddress = "%%LNG_ShipToThisAddress%%";
lang.CheckingOutAs = "%%LNG_CheckingOutAs%%";
var CustomCheckoutFormNewAccount = %%GLOBAL_CustomCheckoutFormNewAccount%%;
var CustomCheckoutFormBillingAddress = %%GLOBAL_CustomCheckoutFormBillingAddress%%;
var CustomCheckoutFormShippingAddress = %%GLOBAL_CustomCheckoutFormShippingAddress%%;
$(document).ready(function() {
ExpressCheckout.signedIn = %%GLOBAL_ExpressCheckoutSignedIn%%;
ExpressCheckout.digitalOrder = %%GLOBAL_ExpressCheckoutDigitalOrder%%;
ExpressCheckout.init();
%%GLOBAL_GoToStep%%
});
%%GLOBAL_FormFieldRequiredJS%%
</script>
%%Discount.FreeShippingEligibility%%
<div class="ExpressCheckoutBlock %%GLOBAL_CollapsedStepClassAccountDetails%%" id="CheckoutStepAccountDetails" style="%%GLOBAL_ExpressCheckoutHideAccountDetails%%">
<p class="ErrorMessage" style="display: %%GLOBAL_HideCheckoutError%%">
%%GLOBAL_CheckoutErrorMsg%%
</p>
<div class="ExpressCheckoutTitle">
<a class="ChangeLink" href="#" onclick="return ExpressCheckout.ChangeStep('AccountDetails');" title="Modify"></a>
%%LNG_ExpressCheckoutStep%% %%GLOBAL_ExpressCheckoutStepAccountDetails%%: %%LNG_ExpressCheckoutStepAccountDetails%%
<span class="ExpressCheckoutCompletedContent"></span>
</div>
<div class="ExpressCheckoutContent">
<div class="CreateAccount">
<form action="#" method="post" onsubmit="ExpressCheckout.GuestCheckout(); return false;">
<div id="CheckoutGuestForm" style="%%GLOBAL_HideGuestCheckoutOptions%%">
<h4>%%LNG_NotAnExistingCustomer%%</h4>
<p>%%LNG_CheckoutGuestIntro%%</p>
<div class="" style="line-height: 2;">
<dl class="mbm">
<dd><label><input name="checkout_type" id="checkout_type_guest" value="guest" type="radio" onclick="$('#BillingDetailsLabel').html('%%LNG_ExpressCheckoutStepBillingAddress%%');" /> %%LNG_CheckoutAsAGuest%%</label></dd>
<dd><label><input name="checkout_type" id="checkout_type_register" value="register" checked="checked" type="radio" onclick="$('#BillingDetailsLabel').html('%%LNG_ExpressCheckoutStepBillingAccountDetails%%');" /> %%LNG_RegisterAnAccount%%</label></dd>
</dl>
<div class="Submit">
<input type="submit" id="CreateAccountButton" value="%%LNG_Continue%%" class="btn" /> <span class="LoadingIndicator" style="display: none"><img src="%%GLOBAL_IMG_PATH%%/loader.png" alt="" /></span>
</div>
</div>
</div>
<div style="%%GLOBAL_HideRegisteredCheckoutOptions%%">
<h4>%%LNG_NotAnExistingCustomer%%</h4>
<p>%%LNG_CreateAccountIntroTitle%%</p>
<div>
<ul style="margin-left: 0; line-height: 1.4; padding-left: 0;">
<li style="margin-left: 0; padding-left: 0;">%%LNG_CreateAccountIntro1%%</li>
<li style="margin-left: 0; padding-left: 0;">%%LNG_CreateAccountIntro2%%</li>
<li style="margin-left: 0; padding-left: 0;">%%LNG_CreateAccountIntro3%%</li>
</ul>
</div>
<p class="PL40 Submit">
<input type="submit" value="%%LNG_Continue%%" class="btn" /> <span class="LoadingIndicator" style="display: none"><img src="%%GLOBAL_IMG_PATH%%/loader.png" alt="" /></span>
</p>
</div>
</form>
</div>
<div class="AccountLogin">
<!-- <h4>%%LNG_AlreadyHaveAnAccount%%</h4> -->
<h4> What? </h4>
<p id="LoginIntro">%%LNG_AlreadyHaveAnAccountIntro%%</p>
<form action="#" id="LoginForm" method="post" onsubmit="ExpressCheckout.Login(); return false;">
<div class="FormContainer HorizontalFormContainer">
<p style="display: none" class="ErrorMessage" id="CheckoutLoginError">
%%GLOBAL_LoginMessage%%
</p>
<dl>
<dt>%%LNG_EmailAddress%%:</dt>
<dd><input type="text" class="Textbox Field200 InitialFocus" name="login_email" id="login_email" /></dd>
<dt>%%LNG_Password%%:</dt>
<dd><input type="password" autocomplete="off" class="Textbox Field200" name="login_pass" id="login_pass" /></dd>
<dt> </dt>
<dd>
<input id="LoginButton" type="submit" value="%%LNG_Continue%%" class="btn" /> <span class="LoadingIndicator" style="display: none"><img src="%%GLOBAL_IMG_PATH%%/loader.png" alt="" /></span>
</dd>
<dt></dt>
<dd>%%LNG_ForgotYourPassword%%</dd>
</dl>
</div>
</form>
</div>
<div class="clear"></div>
</div>
</div>
<div class="clear ExpressCheckoutBlock %%GLOBAL_CollapsedStepClassBillingAddress%%" id="CheckoutStepBillingAddress">
<div class="ExpressCheckoutTitle">
<a class="ChangeLink" href="#" onclick="return ExpressCheckout.ChangeStep('BillingAddress');" title="Modify">Modify</a>
%%LNG_ExpressCheckoutStep%% %%GLOBAL_ExpressCheckoutStepBillingAddress%%:
<span id="BillingDetailsLabel">%%LNG_ExpressCheckoutStepBillingAddress%%</span>
<span class="ExpressCheckoutCompletedContent"></span>
</div>
<div class="ExpressCheckoutContent">
%%SNIPPET_BillingAddressStepContents%%
</div>
</div>
<div class="clear ExpressCheckoutBlock %%GLOBAL_CollapsedStepClassShippingAddress%%" id="CheckoutStepShippingAddress" style="%%GLOBAL_ExpressCheckoutHideShippingAddress%%">
<div class="ExpressCheckoutTitle">
<a class="ChangeLink" href="#" onclick="return ExpressCheckout.ChangeStep('ShippingAddress');" title="Modify">Modify</a>
%%LNG_ExpressCheckoutStep%% %%GLOBAL_ExpressCheckoutStepShippingAddress%%: %%LNG_ExpressCheckoutStepShippingAddress%%
<span class="ExpressCheckoutCompletedContent"></span>
</div>
<div class="ExpressCheckoutContent">
%%SNIPPET_ShippingAddressStepContents%%
</div>
</div>
<div class="clear ExpressCheckoutBlock %%GLOBAL_CollapsedStepClassShippingProvider%%" id="CheckoutStepShippingProvider" style="%%GLOBAL_ExpressCheckoutHideShippingProviders%%">
<div class="ExpressCheckoutTitle">
<a class="ChangeLink" href="#" onclick="return ExpressCheckout.ChangeStep('ShippingProvider');" title="Modify">Modify</a>
%%LNG_ExpressCheckoutStep%% %%GLOBAL_ExpressCheckoutStepShippingProvider%%: %%LNG_ExpressCheckoutStepShippingMethod%%
<span class="ExpressCheckoutCompletedContent"></span>
</div>
<div class="ExpressCheckoutContent">
</div>
</div>
<div class="clear ExpressCheckoutBlock %%GLOBAL_CollapsedStepClassConfirmation%%" id="CheckoutStepConfirmation">
<div class="ExpressCheckoutTitle">
<a class="ChangeLink" href="#" onclick="return ExpressCheckout.ChangeStep('Confirmation');" title="Modify">Modify</a>
%%LNG_ExpressCheckoutStep%% %%GLOBAL_ExpressCheckoutStepConfirmation%%: %%LNG_ExpressCheckoutStepOrderConfirmation%%
<span class="ExpressCheckoutCompletedContent"></span>
</div>
<div class="ExpressCheckoutContent">
</div>
</div>
<div class="clear ExpressCheckoutBlock %%GLOBAL_CollapsedStepClassPaymentDetails%%" id="CheckoutStepPaymentDetails" style="%%GLOBAL_ExpressCheckoutHidePaymentDetails%%">
<div class="ExpressCheckoutTitle">
%%LNG_ExpressCheckoutStep%% %%GLOBAL_ExpressCheckoutStepPaymentDetails%%: %%LNG_ExpressCheckoutStepPaymentDetails%%
</div>
<div class="ExpressCheckoutContent">
</div>
</div>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
%%Panel.Footer%%
</div>
<script type="text/javascript">
$(document).ready(function() {
// live change to watch for newly created dom elements
$('#FormField_11, #FormField_21').live('change',function(){
$.uniform.restore('select.JSHidden');
});
});
$(document).ajaxComplete(function(event,request, settings) {
$('select').not('.UniApplied').uniform();
$('input[type=checkbox], input[type=radio]').not('.UniApplied').uniform();
});
$(window).load(function() {
$('select').not('.UniApplied').uniform();
});
</script>
</body>
</html>
Current Checkout Page:
Desired Checkout Page:

Navigating multiple carousel items with bootstrap 3

How to make carousel items navigate as a group with bootstrap 3? Rather than moving items one at a time how can we make the multiple items move at a click. For e.g. If i see slides 1,2,3 the next carousel control should display slides 4,5,6.
<div id="myCarousel" class="carousel slide">
<div class="carousel-inner">
<div class="item active">
<div class="col-xs-3"><img src="images\link4\Picture1.png" class="img-responsive"></div>
</div>
<div class="item">
<div class="col-xs-3"><img src="images\link4\Picture2.png" class="img-responsive"></div>
</div>
<div class="item">
<div class="col-xs-3"><img src="images\link4\Picture3.png" class="img-responsive"></div>
</div>
<div class="item">
<div class="col-xs-3"><img src="images\link4\Picture4.png" class="img-responsive"></div>
</div>
<div class="item">
<div class="col-xs-3"><img src="images\link4\Picture5.png" class="img-responsive"></div>
</div>
<div class="item">
<div class="col-xs-3"><img src="images\link4\Picture2.png" class="img-responsive"></div>
</div>
<div class="item">
<div class="col-xs-3"><img src="images\link4\Picture4.png" class="img-responsive"></div>
</div>
<div class="item">
<div class="col-xs-3"><img src="images\link4\Picture3.png" class="img-responsive"></div>
</div>
</div>
<!-- Controls -->
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<script>
$('.carousel .item').each(function(){
var next = $(this).next();
if (!next.length) {
next = $(this).siblings(':first');
}
next.children(':first-child').clone().appendTo($(this));
for (var i=0;i<2;i++) {
next = next.next();
if (next.length>0) {
next.children(':first-child').clone().appendTo($(this));
}
else {
$(this).siblings(':first').children(':first-child').clone().appendTo($(this));
} }
});
</script>
There's no need for the extra JS. Just use the standard Bootstrap carousel...
<div class="carousel-inner">
<div class="item active">
<div class="col-xs-3">
<img src="//placehold.it/400" class="img-responsive">
</div>
<div class="col-xs-3">
<img src="//placehold.it/400" class="img-responsive">
</div>
<div class="col-xs-3">
<img src="//placehold.it/400" class="img-responsive">
</div>
<div class="col-xs-3">
<img src="//placehold.it/400" class="img-responsive">
</div>
</div>
<div class="item">
<div class="col-xs-3">
<img src="//placehold.it/400" class="img-responsive">
</div>
<div class="col-xs-3">
<img src="//placehold.it/400" class="img-responsive">
</div>
<div class="col-xs-3">
<img src="//placehold.it/400" class="img-responsive">
</div>
<div class="col-xs-3">
<img src="//placehold.it/400" class="img-responsive">
</div>
</div>
</div>
http://www.codeply.com/go/Vnvl4HqgKJ