[ANN] HTML 5 Campaign Monitor
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
[ANN] HTML 5 Campaign Monitor
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
-
- Posts: 83
- Joined: Sun Feb 16, 2014 10:08 pm
Re: [ANN] HTML 5 Campaign Monitor
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.
Is there some one who can release this to Android store so I can have it on my phone?
Uau! again.
-
- VIP Livecode Opensource Backer
- Posts: 142
- Joined: Thu Feb 21, 2013 8:47 am
Re: [ANN] HTML 5 Campaign Monitor
Very nice utility Scott. Thanks
Marc
Marc
Re: [ANN] HTML 5 Campaign Monitor
I just made a web widget that you can incorporate on every site, the code is:
You should get something like this:
The PHP used is:
You arel free to reuse e modify the code!
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>
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>
Last edited by MaxV on Mon Jul 28, 2014 10:43 am, edited 3 times in total.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: [ANN] HTML 5 Campaign Monitor
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.
but I don't know the code and the blue progress bar is not correct.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w