/declare my id {100003013}
/declare member1 id {100003013}
/declare member2 id {1525608}
/declare member3 id {1256824}
/declare member4 id {1388786}
|If my id is not equal to member1 id then goto crank1
|
|if my id is equal to player id then go to crank2
/if (${my id.NotEqual[${member1 id}]})
/goto member1
/if (${my Id.equal[${member1 id}])
/goto member2
/member1
<html>
<body>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=335&sourceu="${member1 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=53&sourceu="${member1 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=57&sourceu="${member1 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=194&sourceu="${member1 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=196&sourceu="${member1 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"> </iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=242&sourceu="${member1 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=286&sourceu="${member1 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
</body>
</html>
/if (${my id.NotEqual[${member2 id}]})
/goto member2
/if (${my Id.equal[${member1 id}])
/goto member3
/member2
<html>
<body>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=335&sourceu="${member2 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=53&sourceu="${member2 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=57&sourceu="${member2 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=194&sourceu="${member2 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=196&sourceu="${member2 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=242&sourceu="${member2 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=286&sourceu="${member2 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
</body>
</html>
/if (${my id.NotEqual[${member1 id}]})
/goto member3
/if (${my Id.equal[${member1 id}])
/goto member4
/member3
<html>
<body>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=335&sourceu="${member3 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=53&sourceu="${member3 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=57&sourceu="${member3 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=194&sourceu="${member3 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=196&sourceu="${member3 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=242&sourceu="${member3 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=286&sourceu="${member3 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
</body>
</html>
/if (${my id.NotEqual[${member1 id}]})
/goto member4
/if (${my Id.equal[${member1 id}])
/goto end
/member4
<html>
<body>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=335&sourceu="${member4 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=53&sourceu="${member4 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=57&sourceu="${member4 id}"&pag e=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=194&sourceu="${member4 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=196&sourceu="${member4 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=242&sourceu="${member4 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
<iframe src="http://www.ageofchampions.com/game/gift_accept.php?wid=286&sourceu="${member4 id}"&pa ge=gift_accept.php&source=190&sourced=179&ref=nf" height="300" width="100%"></iframe>
</body>
</html>
/end
this is a script to crank a guilds titans in the game age of champions on facebook
the problem is that if you are on the list it will not work
so i am trying to kind a way to make a list with all members
and have the script determine witch one you are and not add you to the list
i would realy like to have the script find the the playerid on its own so i can attach
it to a web page.
the way i have it each individual has to enter ther id in the my id space.
If i use a log in with facebook app will this work.
I probly have some syntx errors too. but i can work them out
"i would realy like to have the script find the the playerid on its own so i can attach it to a web page. the way i have it each individual has to enter ther id in the my id space."
Pass the playerid in to your page via the query string. Have your script read the query string value, dump it into the my Id variable, then render out their specific HTML based upon the value in that my Id variable.
Related
So I am creating a simple version of the mcdonald's site as a part of a project that I am doing, and in that, I need to add a modal that displays a map on the click of a button. However, when I add the modal, the positions of the elements that are already in place are disturbed.
I am trying to figure out how to add to modal without having the other elements move, but I cannot seem to figure it out.
The modal is supposed to show up with the click of the button with the class "location".
I have included the code snippet and screenshots to let you know what the project was like before and after the modal, to let you see what I mean by the positioning being disturbed.
Here is code that the problem occurs with:
#import url('https://fonts.googleapis.com/css2?family=Crimson+Text&family=Graduate&family=Shadows+Into+Light&display=swap');
*{
margin:0;
padding:0;
}
html,body{
width:100vw;
height:100vh;
overflow-x: hidden;
}
.container nav{
width:100vw;
height:15vh;
display:flex;
align-items:center;
justify-content: space-between;
background:red;
}
nav img{
width:6vw;
height:auto;
margin-left:3vw;
}
nav #button{
padding: 1.8vh 2vw;
margin-right:4vw;
background:linear-gradient(to right, gold, yellow);
border:.1px solid black;
border-radius:0.390625vw;
color:black;
font-family: 'Crimson Text', serif;
font-weight:normal;
font-size:1.125vw;
}
nav #button:hover{
background:linear-gradient(to right, goldenrod, rgb(161, 161, 0));
}
.container .orderbar{
width:100vw;
height:13vh;
background:rgba(0,0,0,.8);
display:flex;
justify-content: space-between;
font-family:'Shadows Into Light',cursive;
}
.orderbar #fafaicon{
font-size:2.109375vw;
color:#999999;
vertical-align: center;
margin-top:4vh;
}
.orderbar #fafaicon:hover{
color:white;
}
.orderbar a{
text-decoration:none;
}
.icon{
color: #999999;
font-size: 2.109375vw;
font-weight: 400;
font-family: 'Shadows Into Light',cursive;
background:none;
border:none;
}
.icon:hover{
color:white;
}
i{
padding-left: 3vw;
}
i span{
font-family: 'Shadows Into Light',cursive;
margin-left:.5vw;
}
.orderbar .right{
margin-right:4vw;
}
.orderbar .location{
padding: 1.6420361247947455vh 1.953125vw;
font-family: 'Graduate',cursive;
}
.location{
font-size:1.328125vw;
margin-top:-2vh;
border-radius: 1.796875vw;
background: rgba(0,0,0,.1);
color:#999999;
border: 1px solid #999999;
}
.location:hover{
background-color: #999999;
color:black;
border: 1px solid black;
}
<!DOCTYPE html>
<html lang="en">
<head>
<title>McDonald's</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--Clickable Map Modal-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<!-- Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://site-assets.fontawesome.com/releases/v6.1.2/css/all.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons#1.9.1/font/bootstrap-icons.css">
<!--Ad Swiper-->
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.css"/>
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css"/>
<link href="style.css" rel="stylesheet">
</head>
<body>
<div class="container">
<nav>
<img src="/Assets/McDonalds.png"/>
<button id="button">Sign In</button>
</nav>
<div class="orderbar">
<div class="left">
<a href="#">
<span class="link">
<button class="icon">
<i class="fa fa-truck" id="fafaicon"><span>Delivery</span></i>
</button>
</span>
</a>
<a href="#">
<span class="link">
<button class="icon" >
<i class="fa fa-shopping-bag" id="fafaicon"><span>Takeout</span></i>
</button>
</span>
</a>
<a href="#">
<span class="link">
<button class="icon">
<i class="fa-solid fa-plate-utensils" id="fafaicon"><span>Dine-In</span></i>
</button>
</span>
</a>
<a href="#">
<span class="link">
<button class="icon">
<i class="fa-solid fa-receipt" id="fafaicon"><span>Menu</span></i>
</button>
</span>
</a>
</div>
<div class="right">
<button class="location" data-toggle="modal" data-target="#map">Our Location</button>
<button class="icon" href="#"><i class="fa fa-search" id="fafaicon"></i></button>
<button class="icon" href="#"><i class="fa fa-cart-shopping-fast" id="fafaicon"></i></button>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="map" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Modal Header</h4>
</div>
<div class="modal-body">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3507.9651108961293!2d-81.47361158255616!3d28.450468100000002!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x88e77e5534ccb6bb%3A0x7e45cfcb49c75afa!2sMcDonald's!5e0!3m2!1sen!2sca!4v1661213105618!5m2!1sen!2sca" width="600" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<script src="script.js"></script>
</body>
</html>
Project Screenshots
Notice how there is no whitespace and everything lines up with the edges:
Before
Notice the space on the left:
After
iframe in bootstrap card scales with width but not height how do I make the height responsive as well?
<script src="https://cdn.jsdelivr.net/npm/bootstrap#5.2.0/dist/js/bootstrap.bundle.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap#5.2.0/dist/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="container">
<div class="row no-gutters">
<div class="col-12">
<div class="card mt-4" style="width: 100%;">
<div class="embed-responsive embed-responsive-4by3">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/vlDzYIIOYmM" style: width="100%" height="100%" allowfullscreen></iframe>
</div>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
Go somewhere
</div>
</div>
</div>
</div>
</div>
From the bootstrap documentation: (https://getbootstrap.com/docs/5.2/helpers/ratio/#example)
Wrap any embed, like an <iframe>, in a parent element with .ratio and an aspect ratio class. The immediate child element is automatically sized thanks to our universal selector .ratio > *.
I also removed the unneeded (hardcoded) width/height attributes.
See sample code below:
<script src="https://cdn.jsdelivr.net/npm/bootstrap#5.2.0/dist/js/bootstrap.bundle.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap#5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<div class="container-fluid">
<div class="row no-gutters">
<div class="col-12">
<div class="card mt-4">
<!-- changes made from here -->
<div class="ratio ratio-16x9">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/vlDzYIIOYmM" allowfullscreen></iframe>
</div>
<!-- to here -->
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
Go somewhere
</div>
</div>
</div>
</div>
</div>
Bootstrap modal not showing. i have included all necessary files.
i have tried moving the JS files to before the as well as before but none is working. i tried my code on jsfiddle but could not work too
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap#5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous">
<title>Hello, world!</title>
</head>
<body>
<h1>Hello, world!</h1>
<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
open
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/#popperjs/core#2.6.0/dist/umd/popper.min.js" integrity="sha384-KsvD1yqQ1/1+IA7gi3P0tyJcT3vR+NdBTt13hSJ2lnve8agRGXTTyNaBYmCR/Nwi" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap#5.0.0-beta2/dist/js/bootstrap.min.js" integrity="sha384-nsg8ua9HAw1y0W1btsyWgBklPnCUAFLuTMS2G72MMONqmOymq585AcH49TLBQObG" crossorigin="anonymous"></script>
</body>
</html>
The Bootstrap 5 data attributes now use the bs namespace, so to trigger the modal it would be...
open
Also jQuery is not necessary.
Demo
Note: The data-bs- markup is required for all Bootstrap 5 javascript components such as Navbar, Dropdown, Collapse, etc...
{% load staticfiles %}
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
</head>
<body>
<div id="carouselExampleSlidesOnly" class="carousel slide" data-ride="carousel">
<div id="Carousel" class="carousel slide">
<ol class="carousel-indicators">
<li data-target="Carousel" data-slide-to="0" class="active"></li>
<li data-target="Carousel" data-slide-to="1"></li>
<li data-target="Carousel" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<img src="img/Carousel/001.jpg">
</div>
<div class="item">
<img src="img/Carousel/002.jpg">
</div>
<div class="item">
<img src="img/Carousel/003.jpg">
</div>
</div>
<a class="left carousel-control" href="#Carousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#Carousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<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.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>
</body>
</html>
My bootstrap doesn't work for carousels neither does for Materialize. What could be the problem? Is the Javascript causing problem or what is it? I'm getting broken carousels. Ignore the images in the code.
The class of the <div>s around the images must be carousel-item, not just item. See the Bootstrap documentation for carousels.
I'm following the video tutorial Design a prototype for a responsive web app using Foundation Apps version 1.2. I'm having a problem where the left nav and news content does not line up next to each...Provide below is my code:
Here is the HTML page:
<!doctype html>
<html lang="en" ng-app="application">
<head>
<meta charset="utf-8" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Yeti News</title>
<link href="/assets/css/app.css" rel="stylesheet" type="text/css">
<script src="/assets/js/foundation.js"></script>
<script src="/assets/js/templates.js"></script>
<script src="/assets/js/routes.js"></script>
<script src="/assets/js/app.js"></script>
</head>
<body>
<div class="grid-frame vertical">
<div class="grid-content shrink collapse">
<div class="title-bar primary">
<div class="center title">YetiNews</div>
<div class="left"><a zf-toggle="info" href="#">Info</a></div>
</div>
</div>
<div class="vertical medium-horizontal grid-block">
<div class="grid-block medium-order-2">
<div zf-panel position="left" id="info" class="fast bounceInOut">
<div class="grid-content">
<h1>Designer News</h1>
<p>This is some great content</p>
</div>
</div>
<div class="grid-content small-12 feeds">
<div class="grid-block small-up-1 meduim-up-2 large-up-3">
<div class="grid-content">
<div class="card card-section">
<h4>This is a title</h4>
<p>This is some really great content and you know how great it is.</p>
</div>
</div>
<div class="grid-content">
<div class="card card-section">
<h4>This is a title</h4>
<p>This is some really great content and you know how great it is.</p>
</div>
</div>
<div class="grid-content">
<div class="card card-section">
<h4>This is a title</h4>
<p>This is some really great content and you know how great it is.</p>
</div>
</div>
<div class="grid-content">
<div class="card card-section">
<h4>This is a title</h4>
<p>This is some really great content and you know how great it is.</p>
</div>
</div>
<div class="grid-content">
<div class="card card-section">
<h4>This is a title</h4>
<p>This is some really great content and you know how great it is.</p>
</div>
</div>
<div class="grid-content">
<div class="card card-section">
<h4>This is a title</h4>
<p>This is some really great content and you know how great it is.</p>
</div>
</div>
</div>
</div>
</div>
<div class="grid-block nav shrink collapse medium-order-1">
<ul class="icon-top medium-vertical menu-bar dark">
<li><img zf-iconic icon="person" size="small" class="iconic-color-primary">Designer</li>
<li><img zf-iconic icon="cog" size="small" class="iconic-color-primary">Hacker</li>
<li><img zf-iconic icon="star" size="small" class="iconic-color-primary">Product</li>
</ul>
</div>
</div>
</div>
</body>
</html>
Please help.
Thank you,