Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


  <script src="js/common.js"></script>
<div class="container">
<div class="row">
	<div class="col-sm-5">
	<div class="calc">
		<h2 class="h2">Расчет стоимости тиража визиток</h2>
		<label for="card">Выберите тираж</label><br>
		<select class="form-control" name="card" id="card">
		<option value="100">100</option>
		<option value="500">500</option>
		<option value="1000">1000</option>
		<option value="2500">2500</option>
		<option value="5000">5000</option>
		<label for="paper">Выберите бумагу</label><br>
		<select name="paper" id="paper" class="form-control">
		<option tb="9" value="<Белый лён">Белый лён</option>
		<option tb="18" value="Мелованная бумага">Мелованная бумага</option>
		<option tb="21" value="Белая vip">Белая vip</option>
		<label for="color">Выберите цвет визитки</label><br>
		<select name="color" id="color" class="form-control">
		<option clpr="5" data="1" value="Односторонняя черно-белая">Односторонняя черно-белая</option>
		<option clpr="10" data="2" value="Двусторонняя черно-белая">Двусторонняя черно-белая</option>
		<option clpr="10" data="3" value="Односторонняя цветная">Односторонняя цветная</option>
		<option clpr="20" data="4" value="Двусторонняя цветная">Двусторонняя цветная</option>
		<option clpr="15" data="5" value="Цветная с лицевой, ч/б с обратной стороны">Цветная с лицевой, ч/б с обратной стороны</option>
		<h3 class="h3">Стоимость за тираж</h3>
		<p class="pr"><span id="price">0</span>руб.</p>
	<div class="col-sm-7">
	<div class="pic">
		<img src="img/1.jpg" alt="" id="card1">
		<img src="img/2.jpg" alt="" id="card2">
		<img src="img/3.jpg" alt="" id="card3">
		<img src="img/4.jpg" alt="" id="card4">
		<img src="img/5.jpg" alt="" id="card5">



                /* your styles go here */

.box-image-text .image {
  min-height: 200px;
  max-height: 200px;


.box-simple {
  min-height: 230px;

  color: #1f62e9;
   color: #b641b0;
  margin-top: 20px;
  border: 3px solid #b641b0;
  padding: 20px 20px;
  width: 100%;
  border: 1px solid #1f62e9;
  font-weight: bold;
  font-size: 50px;
  line-height: 0;
  font-weight: bold;
.pic img{
  padding-top: 20px;
  display: none;
  max-width: 100%;
    display: inline-block;
  max-width: 100%;
  max-height: auto;




                $(function() {
		$card = $('select#card').val();
		$paper = $('select#paper').val();
		$color = $('select#color').val();
		$tb = $('select#paper option:selected').attr("tb");
		$clpr = $('select#color option:selected').attr('clpr');
		$color1 = $('select#color option:selected').attr('data');
		if ($color1 == 1) {
			$('.pic img').hide();
		if ($color1 == 2) {
			$('.pic img').hide();
		if ($color1 == 3) {
			$('.pic img').hide();
		if ($color1 == 4) {
			$('.pic img').hide();
		if ($color1 == 5) {
			$('.pic img').hide();
		$viz = 30;
		$fin = $card / $viz;
		$price = $fin * $tb * $clpr