Playing with firebase

Size
3,175 Kb
Views
32,384

How do I make an playing with firebase?

Just a quick testhttps://www.firebase.com/. What is a playing with firebase? How do you make a playing with firebase? This script and codes were developed by Christian Fleschhut on 11 August 2022, Thursday.

Playing with firebase Previews

Playing with firebase - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>playing with firebase</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.css'>
</head>
<body> <div class='container'> <div class='row'> <div class='col-md-12'> <h2> Firebase Playground </h2> <div class='panel panel-default'> <div class='panel-heading'> Entries <a class='pull-right' href='#newEntry'> <i class='glyphicon glyphicon-plus-sign'></i> New Entry </a> </div> <div class='panel-body'> <div id='messages'></div> </div> </div> <form id='newEntry'> <fieldset> <legend> New entry </legend> <div class='form-group'> <input autofocus class='form-control' name='name' placeholder='Name'> </div> <div class='form-group'> <textarea class='form-control' name='text' placeholder='Message' rows='4'></textarea> </div> <div class='form-group'> <input class='btn btn-primary' type='submit'> </div> </fieldset> </form> <hr> </div> </div>
</div>
<script src='https://cdn.firebase.com/v0/firebase.js'></script>
<script src='http://code.jquery.com/jquery-2.1.0.min.js'></script> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Playing with firebase - Script Codes JS Codes

(function() { var dataRef, messages; dataRef = new Firebase('https://vwj97ubtfe9.firebaseio-demo.com/'); messages = $('#messages'); $('form').on('submit', function(e) { var form, name, submit, text; e.preventDefault(); form = $(this); name = form.find('[name=name]'); text = form.find('[name=text]'); submit = form.find('[type=submit]'); dataRef.push({ name: name.val(), text: text.val() }); return submit.blur(); }); dataRef.on('child_added', function(snapshot) { var entry, html; entry = snapshot.val(); html = '<div class="entry">'; html += '<p><strong>' + entry.name + ': </strong>'; html += entry.text + '</p>'; html += '</div>'; return messages.append(html); });
}).call(this);
Playing with firebase - Script Codes
Playing with firebase - Script Codes
Home Page Home
Developer Christian Fleschhut
Username cfleschhut
Uploaded August 11, 2022
Rating 3
Size 3,175 Kb
Views 32,384
Do you need developer help for Playing with firebase?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Christian Fleschhut (cfleschhut) Script Codes
Create amazing web content with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!