DragToIncDec

Size
2,489 Kb
Views
16,192

How do I make an dragtoincdec?

Change input value by dragging label. What is a dragtoincdec? How do you make a dragtoincdec? This script and codes were developed by Kasper Mikiewicz on 21 November 2022, Monday.

DragToIncDec Previews

DragToIncDec - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>dragToIncDec</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.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! */ body { color: #444; text-shadow: 0 1px rgba(255,255,255, .9); font: 14px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 30px 0; background-image: url(http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/grid.png);
}
p { width: 500px; margin: 0 auto 10px auto;
}
small { font-size: 75%;
}
input { font-size: 12px; color: #777; width: 30px; text-align: center; border: 1px solid #aaa; box-shadow: 0 1px 3px rgba(0,0,0, .15) inset, 0 1px 0 rgba(255,255,255, .9); border-radius: 3px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body>
<p> <label for="num1">Number 1:</label> <input type="text" name="num" value="0" id="num1">
</p>
<p> <label for="num2">Number 2:</label> <input type="text" name="num" value="0" id="num2" data-min="0"> <small>min = 0</small>
</p>
<p> <label for="num3">Number 3:</label> <input type="text" name="num" value="0" id="num3" data-max="10"> <small>max = 10</small>
</p>
<p> <label for="num4">Number 4:</label> <input type="text" name="num" value="0" id="num4" data-min="0" data-max="10"> <small>min = 0, max = 10</small>
</p>
<p> <label for="num5">Number 5:</label> <input type="text" name="num" value="0" id="num5" data-step="5"> <small>step = 5</small>
</p> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://raw.github.com/Idered/dragToIncDec/master/jQuery.dragToIncDec.js'></script> <script src="js/index.js"></script>
</body>
</html>

DragToIncDec - Script Codes CSS Codes

body { color: #444; text-shadow: 0 1px rgba(255,255,255, .9); font: 14px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 30px 0; background-image: url(http://subtlepatterns.subtlepatterns.netdna-cdn.com/patterns/grid.png);
}
p { width: 500px; margin: 0 auto 10px auto;
}
small { font-size: 75%;
}
input { font-size: 12px; color: #777; width: 30px; text-align: center; border: 1px solid #aaa; box-shadow: 0 1px 3px rgba(0,0,0, .15) inset, 0 1px 0 rgba(255,255,255, .9); border-radius: 3px;
}

DragToIncDec - Script Codes JS Codes

/* dragToIncDec @Idered * https://github.com/Idered/dragToIncDec */
$('input').dragToIncDec();
DragToIncDec - Script Codes
DragToIncDec - Script Codes
Home Page Home
Developer Kasper Mikiewicz
Username Idered
Uploaded November 21, 2022
Rating 3
Size 2,489 Kb
Views 16,192
Do you need developer help for DragToIncDec?

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!

Kasper Mikiewicz (Idered) Script Codes
Create amazing blog posts 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!