Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
{}
{
"projects": {
"indext": "portfolio-ab382"
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should stop

}
2 changes: 1 addition & 1 deletion about.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<div class="fontst">
<div class="abouttitel">
<img class="portfoliopic" src="https://avowcares.org/wp-content/uploads/2018/03/coming-soon.png">
<h1>Aldair's Portfolio</h1>
<h1>Aldair's Portfolios</h1>
</div>
<div>
<div>
Expand Down
9 changes: 4 additions & 5 deletions comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<link rel="stylesheet" type="text/css" href="nav.css" >
<link rel="stylesheet" type="text/css" href="main.css">
<link rel="stylesheet" type="text/css" href="footer.css">
<script src="js/test.js" type="module"></script>
<script src="js/music.js" type="module"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Neucha" rel="stylesheet">
</head>
Expand All @@ -19,7 +17,7 @@
<div id="sun">
<div>
<nav class="fontc" id="navv">
<p><h3 class="navname">Aldair's Portfolio</h3></p>
<h3 class="navname">Aldair's Portfolio</h3>
<div class="navdata">
<ul id="hpnav">
<li class="navitems"><a href="index.html">Home</a></li>
Expand Down Expand Up @@ -70,6 +68,7 @@ <h5>Add a comment below</h5>
</div>
</div>

<!-- The core Firebase JS SDK is always required and must be listed first -->
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/6.3.0/firebase-app.js"></script>

Expand All @@ -85,11 +84,11 @@ <h5>Add a comment below</h5>
projectId: "portfolio-ab382",
storageBucket: "",
messagingSenderId: "525784649833",
appId: "1:525784649833:web:516cf1f259a4bb95"
appId: "1:525784649833:web:03de7f964894ed67"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>

<script src="js/music.js" type="module"></script>
</body>
</html>
65 changes: 32 additions & 33 deletions js/music.js
Original file line number Diff line number Diff line change
@@ -1,34 +1,5 @@
/*global $*/
/*global firebase*/
/*glodal location*/


var x = document.getElementById("myAudio");

function enableControls() {
x.pause();
}

function disableControls() {
x.play();
}

var clicknumber=0;
$(".playstop").click(function(){


var num=clicknumber+++1;
$("h1").html(num);
if(num%2 !== 0){

enableControls();
}
else if (num%2 === 0){

disableControls();
}
});

// Get a reference to the database service
var database = firebase.database();
var databaseRef = database.ref("/");

Expand All @@ -53,9 +24,10 @@ databaseRef.once("value").then(function(snapshot) {
"</div>"
);
}

var runer="testing";

$("#submit").click(function(){
console.log(runer);
var name1=$("#viewername").val();
var mail1=$("#viewermail").val();
var comment1=$("#viewercoment").val();
Expand All @@ -68,8 +40,8 @@ $("#submit").click(function(){
var maillegth=smail.length;
var comle=scomment.length;

if(comle < 10 || maillegth<3 || namelegth<3){
alert("no");
if(comle < 10 || maillegth<3 || namelegth<3){
alert("no");
}else{
databaseRef.push({
name:name1,
Expand All @@ -81,3 +53,30 @@ $("#submit").click(function(){

});
});

var x = document.getElementById("myAudio");

function enableControls() {
x.pause();
}

function disableControls() {
x.play();
}

var clicknumber=0;
$(".playstop").click(function(){


var num=clicknumber+++1;
$("h1").html(num);
if(num%2 !== 0){

enableControls();
}
else if (num%2 === 0){

disableControls();
}
});