Smoke.js Jump Start PRO

Smoke.js is an intuitive, sleek and simple framework for creating dialog messages of different types including alert, confirm and quiz.

The following video clip goes through the very first steps you need to complete in order to use this library.

The code shown in this video clip is available below. Make sure you fix the relative links to the files that belong to the Smoke.js library.

<!DOCTYPE html>
<html>
<head>
    <title>Smoke.js Jump Start</title>
	<script type="text/javascript" src="smoke.js"></script>
    <link href="smoke.css" rel="stylesheet" media="screen" />
</head>
<body>
	<h1>Smoke.js Demo</h1>
	<script src="http://code.jquery.com/jquery.js"></script>
	<script>
	function show_quiz_question()
	{
		smoke.quiz("Which is your favorite color?", function(msg){
			console.log(msg);
		}, {
				button_1: "Red",
				button_2: "Green",
				button_3: "Blue",
				button_4: "Yellow",
				button_cancel: "None"
		});
	}
	</script>
	<input type="button" value="quiz" onclick="show_quiz_question()" />
</body>
</html>

You can find more slides and video clips for learning how to use the Smoke.js library in my new Smoke.js Basics free course at http://abelski.lifemichael.com.

Share:

The Visitor Design Pattern

The Visitor Design Pattern

The visitor design pattern allows us to add operations to objects that already exist without modifying their classes and without extending them.

What are Anti Patterns?

Anti Patterns

Unlike design patterns, anti patterns just seem to be a solution. However, they are not a solution and they cause additional costs.

Virtual Threads in Java Professional Seminar

Virtual Threads in Java

The use of virtual threads can assist us with improving the performance of our code. Learn how to use virtual threads effectively.

NoSQL Databases Courses, Seminars, Consulting, and Development

MongoDB Design Patterns Meetup

The use of MongoDB involves with various cases in which we can overcome performance issues by implementing specific design patterns.

image of woman and database

Record Classes in Java

Learn how to define record classes in Java, and when to use record classes in your code. Stay up to date with the new Java features.

Accessibility | Career | Conferences | Design Patterns | JavaScript | Meetups | PHP | Podcasts | Python | Self Learning

Teaching Methodologies | Fullstack | C++ | C# | CSS | Node.js | Angular | Java | Go | Android | Kotlin | Swift | Academy

Front End Development | Scala | Architectures | Cloud | Big Data | Internet of Things | Kids Learn Programming

The Beauty of Code

Coding is Art! Developing Code That Works is Simple. Develop Code with Style is a Challenge!

Skip to content Update cookies preferences