Subway - Red Line

Developer
Size
5,580 Kb
Views
42,504

How do I make an subway - red line?

Tiny simple dropdown.. What is a subway - red line? How do you make a subway - red line? This script and codes were developed by Carl Calderon on 29 July 2022, Friday.

Subway - Red Line Previews

Subway - Red Line - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Subway - Red Line</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='http://www.carlcalderon.com/pen/base.css'> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ @charset "UTF-8";
/* OPTIONS */
/* STYLES */
section#content { width: 300px; position: fixed; left: 50%; top: 50px; margin-left: -150px; text-align: center;
}
h1 { color: white; text-shadow: 0px 2px 1px black; margin-bottom: 1em;
}
div.dropdown { text-align: left; font-size: 0.9em; color: #f0f0f0; text-shadow: 0px 1px 1px black; width: inherit;
}
div.dropdown.closed ul { margin-top: 0px;
}
div.dropdown.closed ul li { margin-top: -40px; height: 0px;
}
div.dropdown.closed div.title:after { margin-top: -14px; -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg);
}
div.dropdown div.title { width: 100%; height: 40px; border: 1px solid rgba(25, 25, 25, 0.3); padding: 12px; cursor: pointer; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2U2ZTZlNiIgc3RvcC1vcGFjaXR5PSIwLjIiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNhMGEwYTAiIHN0b3Atb3BhY2l0eT0iMC4yIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIgLz48L3N2Zz4g'); background-size: 100%; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(230, 230, 230, 0.2)), color-stop(100%, rgba(160, 160, 160, 0.2))); background-image: -moz-linear-gradient(top, rgba(230, 230, 230, 0.2), rgba(160, 160, 160, 0.2)); background-image: -webkit-linear-gradient(top, rgba(230, 230, 230, 0.2), rgba(160, 160, 160, 0.2)); background-image: linear-gradient(to bottom, rgba(230, 230, 230, 0.2), rgba(160, 160, 160, 0.2)); -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; -moz-box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px rgba(0, 0, 0, 0.3); -webkit-box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px rgba(0, 0, 0, 0.3); box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px rgba(0, 0, 0, 0.3);
}
div.dropdown div.title:after { display: block; content: "▾"; position: absolute; right: 20px; margin-top: -12px; -moz-transform: rotate(180deg); -ms-transform: rotate(180deg); -webkit-transform: rotate(180deg); transform: rotate(180deg);
}
div.dropdown ul { overflow: hidden; -moz-transition: margin-top 1s; -o-transition: margin-top 1s; -webkit-transition: margin-top 1s; transition: margin-top 1s; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -moz-box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px rgba(0, 0, 0, 0.3); -webkit-box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px rgba(0, 0, 0, 0.3); box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px rgba(0, 0, 0, 0.3); -moz-border-radius: 0px 0px 3px 3px; -webkit-border-radius: 0px; border-radius: 0px 0px 3px 3px;
}
div.dropdown ul li { width: 100%; height: 40px; border: 1px solid rgba(25, 25, 25, 0.3); padding: 12px; vertical-align: top; overflow: hidden; cursor: pointer; -moz-transition: margin-top 0.5s, height 0.5s; -o-transition: margin-top 0.5s, height 0.5s; -webkit-transition: margin-top 0.5s, height 0.5s; transition: margin-top 0.5s, height 0.5s; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2U2ZTZlNiIgc3RvcC1vcGFjaXR5PSIwLjIiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNhMGEwYTAiIHN0b3Atb3BhY2l0eT0iMC4yIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIgLz48L3N2Zz4g'); background-size: 100%; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(230, 230, 230, 0.2)), color-stop(100%, rgba(160, 160, 160, 0.2))); background-image: -moz-linear-gradient(top, rgba(230, 230, 230, 0.2), rgba(160, 160, 160, 0.2)); background-image: -webkit-linear-gradient(top, rgba(230, 230, 230, 0.2), rgba(160, 160, 160, 0.2)); background-image: linear-gradient(to bottom, rgba(230, 230, 230, 0.2), rgba(160, 160, 160, 0.2));
}
div.dropdown ul li:first-child { border-bottom: none; border-top: none;
}
div.dropdown ul li:last-child { border-top: none; -moz-border-radius: 0px 0px 3px 3px; -webkit-border-radius: 0px; border-radius: 0px 0px 3px 3px;
}
div.dropdown ul li:hover { text-shadow: 0px 1px 1px black, 0px 0px 4px white;
}
div.dropdown ul li:before { content: " "; display: inline-block; position: relative; background: transparent url("http://www.carlcalderon.com/pen/img/line-stop.png"); margin-top: -12px; margin-right: 10px; width: 20px; height: 40px; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70); opacity: 0.7; -moz-transition: all 0.5s; -o-transition: all 0.5s; -webkit-transition: all 0.5s; transition: all 0.5s;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <body class="theme-transit"> <section id="content"> <h1>Subway - Red Line</h1> <div class="dropdown"> <div class="title">Telefonplan</div> <ul> <li>Liljeholmen</li> <li>Midsommarkransen</li> <li>Telefonplan</li> </ul> </div> </section>
</body> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Subway - Red Line - Script Codes CSS Codes

@charset "UTF-8";
/* OPTIONS */
/* STYLES */
section#content { width: 300px; position: fixed; left: 50%; top: 50px; margin-left: -150px; text-align: center;
}
h1 { color: white; text-shadow: 0px 2px 1px black; margin-bottom: 1em;
}
div.dropdown { text-align: left; font-size: 0.9em; color: #f0f0f0; text-shadow: 0px 1px 1px black; width: inherit;
}
div.dropdown.closed ul { margin-top: 0px;
}
div.dropdown.closed ul li { margin-top: -40px; height: 0px;
}
div.dropdown.closed div.title:after { margin-top: -14px; -moz-transform: rotate(0deg); -ms-transform: rotate(0deg); -webkit-transform: rotate(0deg); transform: rotate(0deg);
}
div.dropdown div.title { width: 100%; height: 40px; border: 1px solid rgba(25, 25, 25, 0.3); padding: 12px; cursor: pointer; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2U2ZTZlNiIgc3RvcC1vcGFjaXR5PSIwLjIiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNhMGEwYTAiIHN0b3Atb3BhY2l0eT0iMC4yIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIgLz48L3N2Zz4g'); background-size: 100%; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(230, 230, 230, 0.2)), color-stop(100%, rgba(160, 160, 160, 0.2))); background-image: -moz-linear-gradient(top, rgba(230, 230, 230, 0.2), rgba(160, 160, 160, 0.2)); background-image: -webkit-linear-gradient(top, rgba(230, 230, 230, 0.2), rgba(160, 160, 160, 0.2)); background-image: linear-gradient(to bottom, rgba(230, 230, 230, 0.2), rgba(160, 160, 160, 0.2)); -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; -moz-box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px rgba(0, 0, 0, 0.3); -webkit-box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px rgba(0, 0, 0, 0.3); box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px rgba(0, 0, 0, 0.3);
}
div.dropdown div.title:after { display: block; content: "▾"; position: absolute; right: 20px; margin-top: -12px; -moz-transform: rotate(180deg); -ms-transform: rotate(180deg); -webkit-transform: rotate(180deg); transform: rotate(180deg);
}
div.dropdown ul { overflow: hidden; -moz-transition: margin-top 1s; -o-transition: margin-top 1s; -webkit-transition: margin-top 1s; transition: margin-top 1s; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; -moz-box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px rgba(0, 0, 0, 0.3); -webkit-box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px rgba(0, 0, 0, 0.3); box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px rgba(0, 0, 0, 0.3); -moz-border-radius: 0px 0px 3px 3px; -webkit-border-radius: 0px; border-radius: 0px 0px 3px 3px;
}
div.dropdown ul li { width: 100%; height: 40px; border: 1px solid rgba(25, 25, 25, 0.3); padding: 12px; vertical-align: top; overflow: hidden; cursor: pointer; -moz-transition: margin-top 0.5s, height 0.5s; -o-transition: margin-top 0.5s, height 0.5s; -webkit-transition: margin-top 0.5s, height 0.5s; transition: margin-top 0.5s, height 0.5s; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2U2ZTZlNiIgc3RvcC1vcGFjaXR5PSIwLjIiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNhMGEwYTAiIHN0b3Atb3BhY2l0eT0iMC4yIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIgLz48L3N2Zz4g'); background-size: 100%; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(230, 230, 230, 0.2)), color-stop(100%, rgba(160, 160, 160, 0.2))); background-image: -moz-linear-gradient(top, rgba(230, 230, 230, 0.2), rgba(160, 160, 160, 0.2)); background-image: -webkit-linear-gradient(top, rgba(230, 230, 230, 0.2), rgba(160, 160, 160, 0.2)); background-image: linear-gradient(to bottom, rgba(230, 230, 230, 0.2), rgba(160, 160, 160, 0.2));
}
div.dropdown ul li:first-child { border-bottom: none; border-top: none;
}
div.dropdown ul li:last-child { border-top: none; -moz-border-radius: 0px 0px 3px 3px; -webkit-border-radius: 0px; border-radius: 0px 0px 3px 3px;
}
div.dropdown ul li:hover { text-shadow: 0px 1px 1px black, 0px 0px 4px white;
}
div.dropdown ul li:before { content: " "; display: inline-block; position: relative; background: transparent url("http://www.carlcalderon.com/pen/img/line-stop.png"); margin-top: -12px; margin-right: 10px; width: 20px; height: 40px; filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=70); opacity: 0.7; -moz-transition: all 0.5s; -o-transition: all 0.5s; -webkit-transition: all 0.5s; transition: all 0.5s;
}

Subway - Red Line - Script Codes JS Codes

$(".dropdown .title").click(function () { $(this).parent().toggleClass("closed");
});
$(".dropdown li").click(function () { $(this).parent().parent().toggleClass("closed").find(".title").text($(this).text());
});
Subway - Red Line - Script Codes
Subway - Red Line - Script Codes
Home Page Home
Developer Carl Calderon
Username carlcalderon
Uploaded July 29, 2022
Rating 4.5
Size 5,580 Kb
Views 42,504
Do you need developer help for Subway - Red Line?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Carl Calderon (carlcalderon) Script Codes
Create amazing web content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!