Skip to content

Commit

Permalink
demo for obeserver event
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 18, 2023
1 parent 1bff559 commit c26f82d
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions demo/observer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Observer Events | CoCreateJS</title>

<!-- CoCreate Favicon -->
<link
rel="icon"
href="https://cdn.cocreate.app/favicon.ico"
type="image/ico"
sizes="16x16" />

<!-- Custom CSS -->
<style type="text/css">
.test {
background: red;
}
.new {
background: yellow;
}
.active {
background-color: blue;
}
.hidden {
display: none;
}
</style>
<link rel="manifest" href="/manifest.webmanifest" />
</head>
<body>
<div click-parent click-value="active">click here</div>
<div observe-parent observe-attribute="class" observe-value="active">
testing this new value
</div>

<!--<script src="../dist/CoCreate-events.js"></script>-->
<script src="https://CoCreate.app/dist/CoCreate.js"></script>
</body>
</html>

0 comments on commit c26f82d

Please sign in to comment.