|
Getting JavaBlackBelt congratulations content on your site cannot be easier:
You just have to write a litle piece of JavaScript code anywhere in the body of your html page.
For example, to get congratulations of the day for all countries write this code:
<script src="http://www.javablackbelt.com/js/jbb/CongratBox.js" type="text/javascript">
</script>
<script type="text/javascript">
jbb_cong_days = "1";
jbb_congrat();
</script>
And you'll get this:
Or, to get congratulations of the last five days for any country (in this case United States) write this code:
<script src="http://www.javablackbelt.com/js/jbb/CongratBox.js" type="text/javascript">
</script>
<script type="text/javascript">
jbb_cong_days = "5";
jbb_cong_country = "US";
jbb_congrat();
</script>
You can provide any ISO country code to display congratulations for users from your country.
You may look to the ISO site to find the code of a specific country.
And you'll get this:
Also, you might get congratulations of the last X days for a given exam with this code:
<script src="http://www.javablackbelt.com/js/jbb/CongratBox.js" type="text/javascript">
</script>
<script type="text/javascript">
jbb_cong_days = "1";
jbb_cong_exam = "00119";
jbb_congrat();
</script>
You can provide any ISO country code to display congratulations for users from your country.
You may look to the ISO site to find the code of a specific country.
And you'll get this:
I18n is also supported for French.
Vous pouvez afficher la box en bon Français! (feature ... hum fonctionnalité, spéciale pour nos amis du ParisJUG).
<script src="http://www.javablackbelt.com/js/jbb/CongratBox.js" type="text/javascript">
</script>
<script type="text/javascript">
jbb_cong_days = "1";
jbb_cong_lang = "fr";
jbb_congrat();
</script>
Group Support
Instead of filtering the congratulations by country you may want to filter them by group.
Simply add jbb_cong_group = "url fragment name of the group" as in the example below. Rem: it is not possible to mix both jbb_cong_group & jbb_cong_country
The url fragment can be found in the url of the page of your group : http://www.blackbeltfactory.com/ui#Group/German-Users
And you'll get this:
<script src="http://www.javablackbelt.com/js/jbb/CongratBox.js" type="text/javascript">
</script>
<script type="text/javascript">
jbb_cong_days = "15";
jbb_cong_group = "German-Users";
jbb_congrat();
</script>
|