Page 1 of 1
[ANN] HTML 5 Campaign Monitor
Posted: Wed Jul 02, 2014 10:51 pm
by netdzynr
I saw a request from Heather about wanting a notifier for the HTML 5 campaign so I put together a little stack for this. Execute the following in your message box:
go url "
http://dl.dropboxusercontent.com/u/7192 ... r.livecode"
The stack scrapes data from the campaign page and is configured to automatically check status every 5 minutes, with a chime/refresh animation if a change is detected. There's a manual refresh at the bottom of the window. Note that the campaign page is slow to load here in California (several seconds) so a busy indicator is displayed while the stack is fetching data.
Make your pledge and listen for the chime

Re: [ANN] HTML 5 Campaign Monitor
Posted: Thu Jul 03, 2014 12:44 am
by catalinanesia
Uau! Thanks for this, cool example, also very util.
Is there some one who can release this to Android store so I can have it on my phone?
Uau! again.
Re: [ANN] HTML 5 Campaign Monitor
Posted: Thu Jul 03, 2014 1:20 pm
by MarcVanCauwenberghe
Very nice utility Scott. Thanks
Marc
Re: [ANN] HTML 5 Campaign Monitor
Posted: Mon Jul 07, 2014 1:15 pm
by MaxV
I just made a web widget that you can incorporate on every site, the code is:
Code: Select all
<iframe height=230 src="http://www.maxvessi.net/livecode/html5_en.php" >
Go <a href=http://livecode.com/livecode-to-html5 >here</a> and help the cause!</iframe>
You should get something like this:
The PHP used is:
Code: Select all
<table><tr><td>
<a target="_blank" href=http://livecode.com/livecode-to-html5 >
<img width=100 src=http://livecode.com/wp-content/themes/livecode2013/livecode_html5/HTML5_Logo_256_Logo_only.png >
</a>
</td><td>
Found rising to add HTML5 export in Livecode<br>
<?php
#read page
$url = "http://livecode.com/livecode-to-html5";
$str = file_get_contents($url);
#extarct value
preg_match('#<h1 id=\"funded_value\">.*</h1>#',$str,$matches);
$pledged = $matches[0] ;
$pledged = substr($pledged,22,-5);
echo $pledged ;
#format value
$pledged = str_replace(",","",$pledged);
$pledged = str_replace("$","",$pledged);
?> pledged of $395,000 goal<br>
<progress value="<?php echo $pledged ; ?>" max="395000"></progress>
<br> <?php $giorni = 31 - date("j"); echo $giorni; ?> days to go!
<br><a target="_blank" href=http://livecode.com/livecode-to-html5 >Contribute</a>
</td>
</table>
You arel free to reuse e modify the code!

Re: [ANN] HTML 5 Campaign Monitor
Posted: Thu Jul 17, 2014 9:20 am
by MaxV
There is also another campaign monitor on this page:
http://fmpromigrator.com/
but I don't know the code and the blue progress bar is not correct.