Skip to content

Commit 4e879b0

Browse files
Add files via upload
1 parent 7779cf4 commit 4e879b0

File tree

1 file changed

+99
-12
lines changed

1 file changed

+99
-12
lines changed

views/other-landing.ejs

Lines changed: 99 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@
1515
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.5.4/css/mdb.min.css" rel="stylesheet">
1616
<!-- Your custom styles (optional) -->
1717
<link href="css/other-landing.css" rel="stylesheet">
18+
19+
<style>
20+
.ch{
21+
22+
},
23+
.ch2{
24+
25+
}
26+
</style>
1827
</head>
1928
<body>
2029
<!-- Start your project here-->
@@ -85,13 +94,63 @@
8594
<!--Grid column-->
8695
<div class="col-lg-6 col-md-8">
8796

97+
<% ques.forEach(function(x){%>
98+
99+
<div class="card mb-4">
100+
<!--Card content-->
101+
<div class="card-body">
102+
<!--Title-->
103+
<h4 class="card-title"><img src="./images/prof.jpg" class="user" alt=""><%=x.result[0].username%></h4>
104+
<h6 class="card-subtitle mb-2 text-muted">Backend Developer</h6>
105+
<hr class="hr-danger wow">
106+
<!--Text-->
107+
<div class="container">
108+
<div class="row">
109+
110+
<%for(var q=0;q<x.Lang.length;q++){%>
111+
<a href="#" class="btn btn-blue-grey btn-rounded"><%=x.Lang[q]%></a>
112+
<%}%>
113+
</div>
114+
</div>
115+
<p class="card-text"><%=x.content%></p>
116+
<p class="card-text">Visit <a class="blue-text" href="<%=x.github%>"><%=x.github%></a></p>
117+
</div>
118+
<div class="container">
119+
<div class="row">
120+
<a href="#" class="btn btn-outline-grey btn-rounded ch" id="<%=x.proid%>"><%=x.upvote.length%></a>
121+
<a href="#" class="btn btn-outline-grey btn-rounded ch2" id="<%=x.proid%>"><%=x.downvote.length%></a>
122+
<a href="#" class="btn btn-outline-grey btn-rounded">Comment</a>
123+
<a href="#" class="btn btn-outline-grey btn-rounded">Share</a>
124+
</div>
125+
</div>
126+
<div class="container">
127+
<div class="row">
128+
<div class="form-group grey-border btn-rounded">
129+
<textarea class="form-control z-depth-1 btn-rounded" rows="3" placeholder="Reply"></textarea>
130+
</div>
131+
</div>
132+
</div>
133+
134+
</div>
135+
136+
<%})%>
137+
<!--Card-->
138+
<!--/.Card-->
139+
140+
<!--Card-->
141+
<!--/.Card-->
142+
143+
<!--Card-->
144+
145+
<!--/.Card-->
146+
88147
<!--Card-->
89148
<div class="card mb-4">
90149
<!--Card content-->
91150
<div class="card-body">
92151
<!--Title-->
93-
<h4 class="card-title"><img src="./images/prof.jpg" class="user" alt=""><span class="pl-2">User Name</span></h4>
94-
<h6 class="card-subtitle pt-1 pl-1 mb-2 text-muted">Backend Developer</h6>
152+
<h4 class="card-title"><img src="./images/prof.jpg" class="user" alt="">User Name</h4>
153+
<h6 class="card-subtitle mb-2 text-muted">Backend Developer</h6>
95154
<hr class="hr-danger wow">
96155
<!--Text-->
97156
<div class="container">
@@ -102,29 +161,27 @@
102161
<a href="#" class="btn btn-blue-grey btn-rounded">Codeuino</a>
103162
</div>
104163
</div>
105-
<p class="card-text body-text ">This platform has been Example. Add shadows to different elements: #example1 { Example. Add a blur effect to the shadow: #example1 { Example. Define the spread radius of the shadow: #example1 { Example. Define multiple shadows: #example</p>
106-
<p class="card-text body-text">Visit <a class="blue-text">Codeuino.org</a></p>
164+
<p class="card-text">This platform has been Example. Add shadows to different elements: #example1 { Example. Add a blur effect to the shadow: #example1 { Example. Define the spread radius of the shadow: #example1 { Example. Define multiple shadows: #example</p>
165+
<p class="card-text">Visit <a class="blue-text">Codeuino.org</a></p>
107166
</div>
108167
<div class="container">
109168
<div class="row">
110-
<a href="#" class="btn btn-outline-grey btn-rounded ">+1</a>
111-
<a href="#" class="btn btn-outline-grey btn-rounded ">-1</a>
112-
<a href="#" class="btn btn-outline-grey btn-rounded ">Comment</a>
113-
<a href="#" class="btn btn-outline-grey btn-rounded ">Share</a>
169+
<a href="#" class="btn btn-outline-grey btn-rounded"></a>
170+
<a href="#" class="btn btn-outline-grey btn-rounded">-1</a>
171+
<a href="#" class="btn btn-outline-grey btn-rounded">Comment</a>
172+
<a href="#" class="btn btn-outline-grey btn-rounded">Share</a>
114173
</div>
115174
</div>
116175
<div class="container">
117176
<div class="row">
118-
<div class="form-group grey-border btn-rounded w-100 pr-2 mt-2">
119-
<textarea class="form-control z-depth-1 btn-rounded" rows="3" placeholder="Reply" style="resize:none"></textarea>
177+
<div class="form-group grey-border btn-rounded">
178+
<textarea class="form-control z-depth-1 btn-rounded" rows="3" placeholder="Reply"></textarea>
120179
</div>
121180
</div>
122181
</div>
123182

124183
</div>
125184
<!--/.Card-->
126-
127-
128185
</div>
129186
<!--Grid column-->
130187

@@ -174,6 +231,36 @@
174231

175232
<!-- SCRIPTS -->
176233
<!-- JQuery -->
234+
235+
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
236+
<script>
237+
$(document).ready(function(){
238+
239+
$('.ch').click(function(e){
240+
e.preventDefault();
241+
var z=$(this).attr('id');
242+
alert(z);
243+
$.ajax({
244+
245+
url:'/profile/upvote',
246+
method:'POST',
247+
contentType:'application/json',
248+
data:JSON.stringify({'project':z,client:'<%=sign.Eid%>'}),
249+
success:function(res){
250+
console.log(res);
251+
}
252+
})
253+
254+
255+
256+
257+
});
258+
259+
})
260+
261+
262+
263+
</script>
177264
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
178265
<!-- Bootstrap tooltips -->
179266
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.13.0/umd/popper.min.js"></script>

0 commit comments

Comments
 (0)