javascript - Delphijustin industries https://delphijustin.biz Making use out of things! Sun, 12 Oct 2025 17:50:42 +0000 en-US hourly 1 https://wordpress.org/?v=6.2.9 https://delphijustin.biz/wp-content/uploads/2025/10/cropped-dongwa-192-32x32.png javascript - Delphijustin industries https://delphijustin.biz 32 32 Hangman https://delphijustin.biz/hangman/?utm_source=rss&utm_medium=rss&utm_campaign=hangman https://delphijustin.biz/hangman/#respond Sat, 11 Oct 2025 22:58:54 +0000 https://delphijustin.biz/?p=5393 This a hangman game that uses computer,networking and electronics words. It plays in the web browser

The post Hangman first appeared on Delphijustin industries.

]]>

This a hangman game that uses computer,networking and electronics words. It plays in the web browser

The post Hangman first appeared on Delphijustin industries.

]]>
https://delphijustin.biz/hangman/feed/ 0
Mah-jong Solitaire https://delphijustin.biz/mah-jong-solitaire/?utm_source=rss&utm_medium=rss&utm_campaign=mah-jong-solitaire https://delphijustin.biz/mah-jong-solitaire/#respond Sat, 11 Oct 2025 19:00:48 +0000 https://delphijustin.biz/?p=5383 This a game where you try to match all the tiles. You can add it to your site or use it offline by downloading it from Github

The post Mah-jong Solitaire first appeared on Delphijustin industries.

]]>

This a game where you try to match all the tiles. You can add it to your site or use it offline by downloading it from Github

The post Mah-jong Solitaire first appeared on Delphijustin industries.

]]>
https://delphijustin.biz/mah-jong-solitaire/feed/ 0
jsAllElectronics – Javascript Parts Ordering Script https://delphijustin.biz/jsallelectronics-javascript-parts-ordering-script/?utm_source=rss&utm_medium=rss&utm_campaign=jsallelectronics-javascript-parts-ordering-script https://delphijustin.biz/jsallelectronics-javascript-parts-ordering-script/#respond Fri, 13 Sep 2019 23:37:04 +0000 https://delphijustin.biz/?p=571 I wanted a solution for making my visitors easier for them to order parts to build my projects. This code comes from the “Order By Part#” Page. Heres an example of how to use it: Heres the source code of the utility: Real Example

The post jsAllElectronics – Javascript Parts Ordering Script first appeared on Delphijustin industries.

]]>
I wanted a solution for making my visitors easier for them to order parts to build my projects. This code comes from the “Order By Part#” Page. Heres an example of how to use it:

<script type="text/javascript" src="//delphijustin.biz/wp-content/allelectronics.js"></script><!-- Load jsAllElectronics -->
<script type="text/javascript">
/* Here's how to call createAEForm
createAEForm(parts_Array,buttonText)
Parameters:
parts_Array Array of JSON objects containing parts Cat# and Qty
buttonnText Text inside of the button on the form.
*/

createAEForm([{Cat:"291-5.6K",Qty:10},{Cat:"293-10",Qty:10}],"Add Resistors to cart");//write form HTML to page
</script>

Heres the source code of the utility:

/*
Parts ordering script off of all electronics. This utility is not from all electronics and doesn't checks if all parts are in stock. If a part 
is not in stock all except parts that were not in stock will be added
jsAllElectronics by Justin Roeder www.delphijustin.biz
*/
function EnumParts(item,index){
var xitem=index+1;
document.writeln('<input type="hidden" name="id['+xitem+']" value="'+item.Cat+'"/>');
document.writeln('<input type="hidden" name="qty['+xitem+']" value="'+item.Qty+'"/>');
}
function createAEForm(parts,buttonText){
document.writeln('<form method="get" action="https://www.allelectronics.com/">');
document.writeln('<input type="hidden" name="type" value="" />');
document.writeln('<input type="hidden" name="page" value="item" />');
document.writeln('<input type="hidden" name="action" value="cart" />');
document.writeln('<input type="hidden" name="id" value="order_by_cat" />');
document.writeln('<input type="hidden" name="skip_redirect_suffix" value="" />');
parts.forEach(EnumParts);
document.writeln('<input type="submit" value="'+buttonText+'"></form>');
}

Real Example

The post jsAllElectronics – Javascript Parts Ordering Script first appeared on Delphijustin industries.

]]>
https://delphijustin.biz/jsallelectronics-javascript-parts-ordering-script/feed/ 0