Showing posts with label Scripts. Show all posts
Showing posts with label Scripts. Show all posts

Monday, September 19, 2016

How to add a Chat Bot for your webside

Bot Libre's goal is to foster an open, safe community of artificial intelligent chat bots and their developers.
Bot Libre allows you to create your own artificial intelligent chat bot, train them, and share them with others. You are free to use this website, and create your own bots for personal, commercial, or educational usages.
You can connect your bot to email, Twitter, Facebook, live chat, chat rooms, forums, or IRC chat.
You can give your bot its own avatar, using video, images and sound.
You can train your bot through interacting with it, or using chat logs, or importing AIML.
You can program your bot using standard AIML, or Self.
You can import data from the web into your bot's memory, such as words from Wiktionary, or information from Freebase.
You can create a bot as a virtual agent to act as your own website avatar.
You can create a bot to provide customer service or technical support for your products or services.
You can create a bot to give advice.
You can create a bot to act as a stand-in for yourself.
You can create a bot to be your friend.

The Bot Libre platform is an open source project developed by BotLibre.org.
BotLibre.com is a website produced and hosted by Paphus Solutions Inc.
Easy steps to add a chat bot
1) Create account and login to https://www.botlibre.com/ 
2) Click Create
2b) Name your Cat bot , add description , category and tags

2) Click Create

4) Copy Code
5) Paste Code it to a HTML/Javascript Gadget and Save

Live test the Superblogger3  Help Chat bot  >>> to the Right buttom of this page.
The bot response to simple keywords: css , info , help , java , css , html , also response and to the most impotant HTML5 tags: <HEAD> , <FRAME> , <CENTER> <FORM> e,c,t

INFO: this is a demo cat bot but guess !!! need  hard !!! work to program the bot for your website !!!


The Bot Libre SDK is a software development kit that makes it easy for developers to create their own website, mobile app, or server that accesses Bot Libre services.
The SDK includes an JavaScript API and SDK that makes it simple to develop your own bot or chat website.
The SDK includes an Java API and Android activities that makes it simple to develop your own bot or chat Android app.
The SDK includes an iOS API and user interface classes that makes it simple to develop your own bot or chat iOS app.
The SDK also includes examples and support for other programming languages.
The Bot Libre AI engine and SDK are open source under the Eclipse Public License. They are hosted on GitHub under the project Bot Libre.

Docs

See also:

Thursday, September 15, 2016

How to embed a pinterest thumbnail using a HTML/JavaScript Gadget


1) Create a Pinterest accout and login 

2) Goto your Pinterest main page and Create a New folder and Name it with "Your blog name"

3) Pin some post ftom your blog and add that posts to your Pinterest folder ( put all pins to the "Your blog name" folder  )

4) Visit and use the pinterest.com/widget-builder/
Widget builder , coise a Pinterest button or widget to your website. You can also add a Pin It button to your iOS orAndroid app. ....

5) Edit the first box: 

Pinterest Board URL:
Delete the https://www.pinterest.com/pinterest/official-news/ and add 
your pinterest info https://www.pinterest.com/your pintset adress/your pinset subfolder
your pinterest subfolder = "Your blog name"
Now the genarated code looks like: 

<a data-pin-do="embedBoard" href="http://www.pinterest.com/your pintset adress/your pinterest subfolder" 
data-pin-scale-width="115" data-pin-scale-height="120" data-pin-board-width="900">
</a>
<!-- Please call pinit.js only once per page -->
<script type="text/javascript" async defer src="//assets.pinterest.com/js/pinit.js">
</script>

To embed this code to blogger use a HTML/JavaScript gadget: 


and paste it to code area



How to Live Chat using a simple Gadget


To add a live chat room as Gadget to your blog :

8 Very Simple Steps >>>

1) go to page http://chatroll.com/
2) create a account  (if you do not have one)


3) Click Create a New Chat
4) Give a chat name  ( f.e Your blog name )



5) Click Embed Code
6) Copy the HTML embed code



7) Click Add a Gadget - HTML/JavaScript



8) Paste the embeded code and save



You can customize your live chat room size from  < iframe width="yourWidth"  heigth="yourHeight"

Wednesday, September 14, 2016

Facebook Like Button for the Web

A single click on the Like button will 'like' pieces of content on the web and share them on Facebook. You can also display a Share button next to the Like button to let people add a 


Step-by-Step

1. Choose URL or Page

Pick the URL of a website or Facebook Page you want to use with the like button.

2. Code Configurator

Paste the URL to the code configurator and adjust settings like the width of your like button. Click the Get Code button to generate your like button code.

3. Copy & Paste HTML snippet

Copy and past the snippet into the HTML of the destination website.

Full Code Example

Copy & paste the code example to your website. Adjust the value data-href to your website URL. Next use the og:*** meta tags to adjust your link preview. og:url and data-href should use the same URL.
<html>
<head>
<title>Your Website Title</title>
<!-- You can use open graph tags to customize link previews.
Learn more: https://developers.facebook.com/docs/sharing/webmasters -->

<meta property="og:url" content="http://www.your-domain.com/your-page.html" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Your Website Title" />
<meta property="og:description" content="Your description" />
<meta property="og:image" content="http://www.your-domain.com/path/image.jpg" />
</head>
<body>

<!-- Load Facebook SDK for JavaScript -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js
= d.createElement(s); js.id = id;
js
.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1";
fjs
.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<!-- Your like button code -->
<div class="fb-like"
data-href="http://www.your-domain.com/your-page.html"
data-layout="standard"
data-action="like"
data-show-faces="true">
</div>

</body>
</html>

Settings

In addition to the settings above, you can also change the following:
SettingHTML5 AttributeDescriptionDefault
actiondata-actionThe verb to display on the button. Can be either like orrecommendlike
colorschemedata-colorschemeThe color scheme used by the plugin for any text outside of the button itself. Can belight or dark.light
hrefdata-hrefThe absolute URL of the page that will be liked.Current URL.
kid_directed_sitedata-kid-directed-siteIf your web site or online service, or a portion of your service, is directed to children under 13 you must enable thisfalse
layoutdata-layoutSelects one of the different layouts that are available for the plugin. Can be one ofstandard,button_countbuttonor box_count. See theFAQ for more details.standard
refdata-refA label for tracking referrals which must be less than 50 characters and can contain alphanumeric characters and some punctuation (currently +/=-.:_). See the FAQfor more details.None
sharedata-shareSpecifies whether to include a share buttonbeside the Like button. This only works with the XFBML version.false
show_facesdata-show-facesSpecifies whether to display profile photos below the button (standard layout only). You must not enable this on child-directed sites.false
sizedata-sizeThe button is offered in 2 sizes i.e. large andsmall.small
widthdata-widthThe width of the plugin (standard layout only), which is subject to the minimum and default width. Please see Layout Settings belowfor more details.See standard inLayout Settings

Layout Settings

There are the following options:
LayoutDefault Sizes
standardMinimum width: 225 pixels.
Default width: 450 pixels.
Height: 35 pixels (without photos) or 80 pixels (with photos).
box_countMinimum width: 55 pixels.
Default width: 55 pixels.
Height: 65 pixels.
button_countMinimum width: 90 pixels.
Default width: 90 pixels.
Height: 20 pixels.
buttonMinimum width: 47 pixels.
Default width: 47 pixels.
Height: 20 pixels.

Adjust Language

You can adjust the language of the Like Button by loading a localized version of the Facebook JavaScript SDK. When you load the SDK adjust the value js.src to use your locale: Just replaced en_US by your locale, e.g. fr_FR for French (France):
js.src = "//connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.7"; 
Supported locales are referenced in the Facebook Locales XML file. You may need to adjust the width of a Social Plugin to accommodate different languages. You may find more information on our Localization & Translation page.

Resource https://developers.facebook.com/docs/plugins/like-button

Saturday, August 27, 2016

How to embed a flash .swf paint game to your webside


<div class="kidmonsgame" data-width="830" data-height="590" data-gameid="paint-online">
<a class="kmlink" href="http://kidmons.com/game/paint-online" target="_blank">More free games</a></div>
<script>
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s);
js.id = id;js.src = "//cdn1.kidmons.com/sdk/embed.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'spritted-sdk'));
</script>





Resource http://kidmons.com/embed/paint-online

How to embed a HEX Flash Color picker to your webpage

This Color Code Generator will help you get the six digit color code i.e hexadecimal value. It could be very effective if you want to get a perfect combination of colors for your blog and if you have a good experience about color picking and selection matching, this will help you to make your blog to look really professional. The Color Code Generator is also very useful when you try to blend the Google AdSense ads with the site content.





To install Hex Color Code Generator on a Blogger/Blogspot page or post, copy the following code and paste it in the post or page HTML:

<center>
<object width="480" height="480" classid="clsid:D27CDB6E -AE6D-11CF-96B8-444553540000"
                codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" 
                border="0">
<param name="movie" value="http://www.2createawebsite.com/build/color.swf" />
<param name="quality" value="High" />
<embed src="http://www.2createawebsite.com/build/color.swf"
                pluginspage="http://www.macromedia.com/go/getflashplayer" 
                type="application/x-shockwave-flash" name="obj1" width="485" height="485" quality="High" />
</object>
</center>


Resource http://helplogger.blogspot.gr/2012/02/color-code-generator.html

Monday, August 22, 2016

HTML calculator




double pipe heat exchangerHtml Codes

<script type='text/javascript' src='http://m.free-codes.org/gh.php?id=2001'></script>
<CENTER>

<FORM name="Keypad" action="">
<TABLE>
<B>
<TABLE border=2 width=50 height=60 cellpadding=1 cellspacing=5>
<TR>
<TD colspan=3 align=middle>
<input name="ReadOut" type="Text" size=24 value="0" width=100%>
</TD>
<TD
</TD>
<TD>
<input name="btnClear" type="Button" value=" C " onclick="Clear()">
</TD>
<TD><input name="btnClearEntry" type="Button" value=" CE " onclick="ClearEntry()">
</TD>
</TR>
<TR>
<TD>
<input name="btnSeven" type="Button" value=" 7 " onclick="NumPressed(7)">
</TD>
<TD>
<input name="btnEight" type="Button" value=" 8 " onclick="NumPressed(8)">
</TD>
<TD>
<input name="btnNine" type="Button" value=" 9 " onclick="NumPressed(9)">
</TD>
<TD>
</TD>
<TD>
<input name="btnNeg" type="Button" value=" +/- " onclick="Neg()">
</TD>
<TD>
<input name="btnPercent" type="Button" value=" % " onclick="Percent()">
</TD>
</TR>
<TR>
<TD>
<input name="btnFour" type="Button" value=" 4 " onclick="NumPressed(4)">
</TD>
<TD>
<input name="btnFive" type="Button" value=" 5 " onclick="NumPressed(5)">
</TD>
<TD>
<input name="btnSix" type="Button" value=" 6 " onclick="NumPressed(6)">
</TD>
<TD>
</TD>
<TD align=middle><input name="btnPlus" type="Button" value=" + " onclick="Operation('+')">
</TD>
<TD align=middle><input name="btnMinus" type="Button" value=" - " onclick="Operation('-')">
</TD>
</TR>
<TR>
<TD>
<input name="btnOne" type="Button" value=" 1 " onclick="NumPressed(1)">
</TD>
<TD>
<input name="btnTwo" type="Button" value=" 2 " onclick="NumPressed(2)">
</TD>
<TD>
<input name="btnThree" type="Button" value=" 3 " onclick="NumPressed(3)">
</TD>
<TD>
</TD>
<TD align=middle><input name="btnMultiply" type="Button" value=" * " onclick="Operation('*')">
</TD>
<TD align=middle><input name="btnDivide" type="Button" value=" / " onclick="Operation('/')">
</TD>
</TR>
<TR>
<TD>
<input name="btnZero" type="Button" value=" 0 " onclick="NumPressed(0)">
</TD>
<TD>
<input name="btnDecimal" type="Button" value=" . " onclick="Decimal()">
</TD>
<TD colspan=3>
</TD>
<TD>
<input name="btnEquals" type="Button" value=" = " onclick="Operation('=')">
</TD>
</TR>
</TABLE>
</TABLE>
</B>
</FORM>
</CENTER>
<font face="Verdana, Arial, Helvetica" size=2>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var FKeyPad = document.Keypad;
var Accumulate = 0;
var FlagNewNum = false;
var PendingOp = "";
function NumPressed (Num) {
if (FlagNewNum) {
FKeyPad.ReadOut.value = Num;
FlagNewNum = false;
}
else {
if (FKeyPad.ReadOut.value == "0")
FKeyPad.ReadOut.value = Num;
else
FKeyPad.ReadOut.value += Num;
}
}
function Operation (Op) {
var Readout = FKeyPad.ReadOut.value;
if (FlagNewNum && PendingOp != "=");
else
{
FlagNewNum = true;
if ( '+' == PendingOp )
Accumulate += parseFloat(Readout);
else if ( '-' == PendingOp )
Accumulate -= parseFloat(Readout);
else if ( '/' == PendingOp )
Accumulate /= parseFloat(Readout);
else if ( '*' == PendingOp )
Accumulate *= parseFloat(Readout);
else
Accumulate = parseFloat(Readout);
FKeyPad.ReadOut.value = Accumulate;
PendingOp = Op;
}
}
function Decimal () {
var curReadOut = FKeyPad.ReadOut.value;
if (FlagNewNum) {
curReadOut = "0.";
FlagNewNum = false;
}
else
{
if (curReadOut.indexOf(".") == -1)
curReadOut += ".";
}
FKeyPad.ReadOut.value = curReadOut;
}
function ClearEntry () {
FKeyPad.ReadOut.value = "0";
FlagNewNum = true;
}
function Clear () {
Accumulate = 0;
PendingOp = "";
ClearEntry();
}
function Neg () {
FKeyPad.ReadOut.value = parseFloat(FKeyPad.ReadOut.value) * -1;
}
function Percent () {
FKeyPad.ReadOut.value = (parseFloat(FKeyPad.ReadOut.value) / 100) * parseFloat(Accumulate);
}
// End -->
</SCRIPT>

<a target="_blank" href="http://scopewe.com/double-pipe-heat-exchanger-design-part-1/"
style="text-decoration:none;bottom:0;left:10px;font-size:5pt;color:gray;position:absolute">double 
pipe heat exchanger</a><a target="_blank" href="http://www.htmlfreecodes.com" 
style="font-size: 8pt; text-decoration: none">Html Codes</a>
RESOURCE http://www.htmlfreecodes.com/Calculator_in_your_page--view--.htm

Navigate» Become author for this Blog