Skip to content

Instantly share code, notes, and snippets.

@mihailik mihailik/index.html
Created Oct 12, 2015

Embed
What would you like to do?
<html>
<title>Demo Knockout</title>
<script src="http://knockoutjs.com/downloads/knockout-3.3.0.debug.js"></script>
<h2 data-bind="style: {opacity: Math.random() > 0.5 ? 0.5 : 0.2 }" style="font-size: 120%;">
OK something here
</h2>
<script>
ko.applyBindings({});
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.