Infinity Forum
Christian Engineering Solutions (CES) is a Not for Profit Organization specializing in collaborative solutions development for the Church. In the Spirit of Jesus Christ, we are to spread the gospel throughout the Earth, taking care to be good examples of Christ Jesus by serving others. CES is designed to help the Church meet these goals in the most rigorous manner possible.
Our Technology is scripture based in its goals and foundations. Open-Source and Free, one may use our services to both learn and solve problems with the goals of helping others and growing closer to God.
<!--
Admin Panel Features:
Reviewing Claims
Approving Daemons
Budget Page
Scheduled Maintenance
Downloading Backups
-->
<%- include('html_head') %>
<link rel="stylesheet" type="text/css" href="/css/new.css">
<link rel="stylesheet" type="text/css" href="/css/mobile.css">
</head>
<%- include('header') %>
<%- include('header2', {
page: 'admin'
}) %>
<%-include('menu')%>
<%-include('sidebar')%>
<%if(!ISMOBILE){%>
<%- include('member_box') %>
<%}%>
<input type="hidden" value="false", id="is_profile"/>
<div id="page_title_container">
<%if(passage.parent != null){%>
<div data-url="/passage/<%=encodeURIComponent(passage.parent.title)%>/<%=passage.parent._id%>"id="parent_title"><%=passage.parent.title%></div>
<%}%>
<div id="page_title"><%= "Admin Panel: " + decodeURIComponent(passageTitle) || "Admin Panel"%></div>
<div style="margin-left:97px;margin-bottom:10px;">
<a href="/dbbackup">Download Database Backup</a>
</div>
<div style="margin-left:97px;margin-bottom:10px;">
<a href="/uploadsbackup">Download Uploads Backup</a>
</div>
</div>
<%if(passages){%>
<input id="search"placeholder="Search Solutions..." type="" name="" autocomplete="off">
<%}else if (passage){%>
<input id="search"placeholder="Search Solutions..." type="hidden" name="" autocomplete="off">
<input id="search_passage"placeholder="Search <%=passage.title%>..." type="" name="" autocomplete="off">
<%} %>
<%if((user && passage.id == 'root') || (user && (passage.public || passageUsers.includes(user._id.toString())))){%>
<%if(passage.id == 'root'){%>
<button title="Add Passage"id="add_passage_button">+</button>
<%}%>
<%}%>
<br>
<div id="passage_wrapper">
<!-- Show passage list or search list -->
<%if(passages){%>
<%- include('passages') %>
<%}else if (passage){%>
<!-- Just show one passage -->
<%- include('passage', {passage: passage, sub: sub, subPassages: subPassages}) %>
<%} %>
</div>
<div id="passage_form_wrapper"></div>
<%if((user && passage.id == 'root') || (user && (passage.public || passageUsers.includes(user._id.toString())))){%>
<%if(passage.id != 'root'){%>
<button title="Add Passage"id="add_passage_button">+</button>
<%}%>
<%}%>
<br>
</div>
<%if(passages){%>
<div class="passage"id="view_more">View More</div>
<%}else if (passage && passage.public == true){%>
<div class="passage"id="view_more">View More</div>
<%} %>
<%- include('footer') %>
<div id="file-menu">
<ul>
<li>Download Current Chapter</li>
</ul>
</div>
<div id="edit-menu">
<ul>
<li>Change Editor</li>
<li>Change Mode</li>
</ul>
</div>
<!-- Make div for each menu -->
<input id="is_distraction_free"type="hidden" value="<%=passage.distraction_free || false%>"name="">
<input type="hidden" value="false", id="is_profile"/>
<input type="hidden" id="selection">
<div id="page_title_container">
<%if(passage.parent != null){%>
<div data-url="/passage/<%=encodeURIComponent(passage.parent.title)%>/<%=passage.parent._id%>"id="parent_title"><%=passage.parent.title%></div>
<%}%>
<%if(passageTitle){%>
<div id="page_title"><a style="text-decoration: none;color:inherit;"href="/passage/<%=passage.title%>/<%=passage._id%>"><%= decodeURIComponent(passageTitle)%></a></div>
<%}%>
</div>
<%if(passages){%>
<input id="search"placeholder="Search Solutions..." type="" name="" autocomplete="off">
<%}else if (passage){%>
<input id="search"placeholder="Search Solutions..." type="hidden" name="" autocomplete="off">
<input id="search_passage"placeholder="Search <%=passage.title%>..." type="" name="" autocomplete="off">
<%} %>
<%if((user && passage.id == 'root') || (user && (passage.public || passageUsers.includes(user._id.toString())))){%>
<%if(passage.id == 'root' && passage.public_daemon != 2 && passage.default_daemon != true){%>
<button title="Add Passage"id="add_passage_button">+</button>
<input id="clean_editor"type="hidden" name=""value='<%- include("clean_editor", {passage:passage, page: 'stream'})%>'/>
<%}%>
<%}%>
<br id="top_spacer">
<div id="passage_wrapper">
<!-- Show passage list or search list -->
<%if(passages){%>
<%- include('passages') %>
<%}else if (passage){%>
<!-- Just show one passage -->
<%- include('passage', {passage: passage, sub: sub, subPassages: subPassages}) %>
<%} %>
</div>
<div id="passage_form_wrapper"></div>
<%if((user && passage.id == 'root') || (user && (passage.author._id == user._id || passage.public || passageUsers.includes(user._id.toString())))){%>
<%if(passage.id != 'root' && passage.public_daemon != 2 && passage.default_daemon != true){%>
<button title="Add Passage"id="add_passage_button">+</button>
<%}%>
<%}%>
<br>
</div>
<%if(passages){%>
<div class="passage view-more"id="view_more">View More</div>
<%}else if (passage && passage.public == true){%>
<div class="passage view-more"id="view_more">View More</div>
<%} %>
<%- include('footer') %>
<div class="bookmark">
<div>
<span data-title="<%=bookmark.passage.title%>"class="view_bookmark"id="view_bookmark_<%=bookmark.passage._id%>">View</span> |
<span class="transfer_bookmark"id="transfer_bookmark_<%=bookmark.passage._id%>">Cite</span> |
<span id="remove_bookmark_<%=bookmark._id%>"class="remove_bookmark">Remove</span>
<%if(bookmark.passage.personal_cross_origin === true || bookmark.passage.public_daemon == 2){%>
| <span id="add_daemon_<%=bookmark.passage._id%>"class="add_daemon">Add to Daemons</span>
<%}%>
</div>
<h3><%=bookmark.passage.title%></h3>
</div>
<%bookmarks.forEach(function(bookmark){%>
<%if(bookmark.passage != null){%>
<%- include('bookmark', {bookmark: bookmark})%>
<%}%>
<%});%>
<div class="forum_box">
<div style="margin:auto;margin-bottom:20px;text-align: center;">
<input style="background:rgba(204,204,204,.2);color:white;border:0;padding:8px;" id="cat_search"placeholder="Search..."type="text" name="">
</div>
<div class="forum">
<div class="cat_title">
<span> </span>
<%=name%>
</div>
<%# if (count($res2Fetch) > 0) // if any //will think about it %>
<div class="subcat">
<table id="cat-tbl"class="tbl_subcat">
<tr id="first-cat">
<td>Subject</td>
<td>Replies</td>
<td>Views</td>
<td>Last Post</td>
</tr>
<%var numPosts = 0; %>
<%if(topics.length > 0){%>
<% for(topic of topics){ %>
<%if(topic.forumType != 'subforum'){%>
<%++numPosts;%>
<%- include('cat_row', {topic: topic}) %>
<%}%>
<%}%>
<%}if(numPosts == 0){%>
<tr id="no-posts">
<td style="padding:10px;">No Posts yet</td>
<td></td>
<td></td>
<td></td>
</tr>
<%}%>
</table>
</div><br/>
<ul class="page-count">
<%for(var i = 1; i < totalPages + 1; i += 1){%>
<%if(totalPages > 1){%>
<a style="color:inherit;text-decoration:none;"href="#cat/<%=name%>/<%=_id%>/<%=i%>"><li><%=i%></li></a>
<%}%>
<%}%>
</ul>
</div>
</div>
<input type="hidden" value="<%=btoa(name)%>|<%=_id%>" class="hdn_cat" />
<input id="chief_passage_id"type="hidden" value="<%=_id || 'root'%>"name="chief">
<input id="which-page"type="hidden" value="cat">
<tr>
<td><a href="#thread/<%=topic.title.replace(' ', '_')%>/<%=topic._id%>"><b>
<%if(topic.title == ''){%>
Untitled
<%}else{%>
<%=topic.title%>
<%}%>
</b>
<br/><i><a href="/user/$u">Started by: <%=topic.author.name%></a></i>
</a></td>
<td><%=topic.passages.length%></td>
<td><%=topic.numViews%></td>
<td><%-topic.lastPost%></td>
</tr>
<form style="display:none;"id="passage_form"class="passage_form"action="/create_initial_passage/" type="post"enctype="multipart/form-data">
<input id="passage_title"class="passage_title" value="" type="text"name="title"placeholder="Title (Optional)">
<div class="rich_input input-field">
<div class="passage_description" id="passage_content" cols="30" rows="10" placeholder="Content"></div>
<input id="quill-data"value=""name="content"type="hidden">
</div>
<div class="mixed_input input-field hide2">
<textarea style="display:none;"class="passage_html" name="html" id="passage_html" cols="30" rows="10" placeholder="HTML"></textarea>
<textarea style="display:none;"class="passage_css" name="css" id="passage_css" cols="30" rows="10" placeholder="CSS"></textarea>
<textarea style="display:none;"class="passage_js" name="js" id="passage_js" cols="30" rows="10" placeholder="Javascript"></textarea>
<code-input template="code-input"lang="HTML"class="code_display display_html" id="display_html" placeholder="HTML"value=""></code-input>
<code-input template="code-input"lang="CSS"class="code_display display_css" id="display_css" placeholder="CSS"value=""></code-input>
<code-input template="code-input"lang="javascript"class="code_display display_js" id="display_js" placeholder="Javascript"value=""></code-input>
</div>
<div class="d-code-input input-field hide2">
<div class="ace-editor"style=""id="editor"></div>
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/monokai");
// change this based on lang input
editor.session.setMode("ace/mode/javascript");
editor.getSession().on("change", function () {
$("textarea[id=\"passage_code\"]").val(editor.getSession().getValue());
});
editor.setOptions({
fontSize: "10pt"
});
</script>
<textarea style="display:none;"class="passage_code" name="code" id="passage_code" cols="30" rows="10" autocomplete="off"></textarea>
</div>
<!-- Upload Directory -->
<%/*%>
<input id="passage_file"class="passage_file" name="file" type="file" autocomplete="off" webkitdirectory mozdirectory msdirectory odirectory directory />
<%*/%>
<input id="passage_file"class="passage_file" name="file" type="file" autocomplete="off" multiple/>
<div style="display:none;"id="passage_thumbnail">
<img id="thumbnail_image"src="" alt="">
<input id="thumbnail_clip"type="hidden" name="thumbnail">
</div>
<div id="passage_advanced"class="passage_advanced">
<br>
<div>Programming Language:</div><br>
<input autocomplete="off" id="passage_ext"class="passage_ext passage_lang" value="rich" type="text"name="lang"placeholder="Programming Language">
<script>
$(function(){
$(document).on("keyup", "#passage_ext", function(){
switch($(this).val()){
case "rich":
$(".input-field").hide();
$(".rich_input").show();
break;
case "mixed":
$(".input-field").hide();
$(".mixed_input").show();
break;
default:
$(".input-field").hide();
$(".d-code-input").show();
editor.session.setMode("ace/mode/" + $(this).val());
}
});
});
</script>
<div style="margin-top: 25px;">File Path:</div><br>
<input autocomplete="off"id="passage_filestreampath"class="passage_ext" value="" type="text"name="filestreampath"placeholder="">
<%if(user && user.admin){%>
<!-- add radio buttons for making mainfile -->
<button id="make_mainfile">Make Mainfile (obsolete)</button>
<%}%>
<div style="margin-top: 25px;">Bibliography:</div><br>
<input id="passage_bibliography"class="passage_ext" value="" type="text"name="bibliography"placeholder="Additional Source Info">
<!-- <div style="margin-top: 25px;">Inputs:</div><br>
<input type="text"placeholder="input1" class="passage_input"><br>
<button class="passage_button">More Inputs</button><br><br> -->
<!-- <div style="margin-top: 25px;">Output:</div><br>
<textarea class="passage-textarea"placeholder="Output"name="" id="" cols="30" rows="10"></textarea> -->
<textarea style="display:none;"class="passage_license" name="license" id="passage_license" cols="30" rows="10" placeholder="LICENSE"></textarea>
<input class="editor-chief"type="hidden" value="<%=passage._id || 'root'%>"name="chief">
<input id="post-pg"type="hidden" value="<%=page%>"name="page">
<input id="forum-which"type="hidden" value=""name="which">
<input id="which-page"type="hidden" value="<%=whichPage%>"name="whichPage">
<input id="which-subforums"type="hidden" value="false"name="subforums">
</div>
<ul class="passage_tabs"style="margin-top:20px;text-align:left;">
<li id="passage_executable"class="passage_tab passage_tab_open_advanced open_advanced view_code">Advanced</li>
</ul>
<button id="post-passage"style="margin:auto;text-align:center;font-size:1.3em;">Post</button>
</form>
<h1 style="text-align:center;margin:auto;">UNDER CONSTRUCTION</h1>
<h3 style="text-align:center;margin:auto;">Stay Tuned!</h3>
<h3 style="text-align:center;margin:auto;">Returns 8/11/24</h3>
<div id="daemon_<%=daemon._id%>"class="daemon">
<!-- <iframe style="display:none;"class="iframe" src="/eval/<%=daemon._id%>" frameborder="0" sandbox="allow-scripts allow-same-origin"></iframe> -->
<div>
<span data-title="<%=daemon.title%>"class="view_daemon"id="view_daemon_<%=daemon._id%>">View</span>
<%if(daemon.default_daemon == false){%>
| <span id="remove_daemon_<%=daemon._id%>"class="remove_daemon">Remove</span>
<%}%>
</div>
<h3><%=daemon.title%></h3>
</div>
<!-- daemon.HTML in header.js -->
<%DAEMONS.forEach(function(daemon){%>
<style><%=daemon.css%></style>
<script><%-daemon.code%></script>
<%});%>
<%daemons.forEach(function(daemon){%>
<%- include('daemon', {daemon: daemon})%>
<%});%>
<%- include('html_head') %>
</head>
<%- include('header') %>
<input id="chief_passage_id"type="hidden" value="root"name="">
<br><br><br><br><br><br>
<div style="margin:auto;text-align:center;">
<h3>Cash Pool:</h3>
<h1><span style="color:gold;font-size:1.3em;">$<%=usd%></span></h1>
<h1 style="font-size:3em;">Invest.</h1>
<h2><a target="_blank"href="<%=donateLink%>">Custom Amount</a></h2>
<h2><a target="_blank"href="<%=subscribeLink%>">Subscribe</a></h2>
<%if(user && user.subscribed){%>
<h5 id="cancel-subscription"style="font-weight:normal;color:red;cursor:pointer;">Cancel Active Subscription</h5>
<%}%>
<!-- <h5>(Subscriber stars are multiplied by the number of months subscribed.)</h5> -->
<h3 style="margin-top:50px;">All Funds distributed monthly to Users based on merit (stars invested).</h3>
<h3 style="margin-top:30px;">Investors/subscribers recieve an equivalent in stars.</h3>
<!-- <h5 style="font-weight: normal; color: red;">Get Paid Monthly by Investing Stars in Projects.</h5> -->
<br><br>
</div>
<%- include('footer') %>
<form id="passage_form_<%=passage._id%>"class="passage_form"action="/update_passage/" type="post"enctype="multipart/form-data">
<input value="<%=passage._id%>"name="_id"type="hidden">
<input id="orderList_<%=passage._id%>"value="false"name="passageOrder"type="hidden">
<input id="isChief_<%=passage._id%>"value="false"name="isChief"type="hidden">
<input id="passage_title_<%=passage._id%>"class="passage_title" value="<%=passage.title%>" type="text"name="title"placeholder="Title">
<input id="yes-subforums-<%=passage._id%>"value=""type="hidden" name="subforums">
<%var hide = '';%>
<%if(passage.lang == 'rich'){%>
<%hide = '';%>
<%}else{%>
<%hide = 'hide2';%>
<%}%>
<div class="rich_input_<%=passage._id%> input-field-<%=passage._id%> <%=hide%>">
<div class="passage_description" id="passage_content_<%=passage._id%>" cols="30" rows="10" placeholder="Content"></div>
<input id="quill-data-<%=passage._id%>"value="<%=passage.content%>"name="content"type="hidden">
</div>
<%if(passage.lang == 'mixed'){%>
<%hide = '';%>
<%}else{%>
<%hide = 'hide2';%>
<%}%>
<div class="mixed_input_<%=passage._id%> input-field-<%=passage._id%> <%=hide%>">
<textarea style="display:none;"class="passage_html" name="html" id="passage_html_<%=passage._id%>" cols="30" rows="10" placeholder="HTML"><%=passage.html%></textarea>
<textarea style="display:none;"class="passage_css" name="css" id="passage_css_<%=passage._id%>" cols="30" rows="10" placeholder="CSS"><%=passage.css%></textarea>
<textarea style="display:none;"class="passage_js" name="js" id="passage_js_<%=passage._id%>" cols="30" rows="10" placeholder="Javascript"><%=passage.javascript%></textarea>
<code-input template="code-input"lang="HTML"class="code_display display_html" id="display_html_<%=passage._id%>" placeholder="HTML"value="<%=passage.html || 'HTML'%>"></code-input>
<code-input template="code-input"lang="CSS"class="code_display display_css" id="display_css_<%=passage._id%>" placeholder="CSS"value="<%=passage.css || 'CSS'%>"></code-input>
<code-input template="code-input"lang="javascript"class="code_display display_js" id="display_js_<%=passage._id%>" placeholder="Javascript"value="<%=passage.javascript || 'Javascript'%>"></code-input>
</div>
<%if(passage.lang != 'rich' && passage.lang != 'mixed'){%>
<%hide = '';%>
<%}else{%>
<%hide = 'hide2';%>
<%}%>
<div class="d-code-input-<%=passage._id%> input-field-<%=passage._id%> <%=hide%>">
<div class="ace-editor"style=""id="editor-<%=passage._id%>"><%=passage.code || ''%></div>
<script>
var editor_<%=passage._id%> = ace.edit("editor-<%=passage._id%>");
editor_<%=passage._id%>.setTheme("ace/theme/monokai");
editor_<%=passage._id%>.session.setMode("ace/mode/<%=passage.lang == 'daemon' ? 'javascript' : passage.lang%>");
editor_<%=passage._id%>.getSession().on("change", function () {
$('textarea[id="passage_code_<%=passage._id%>"]').val(editor_<%=passage._id%>.getSession().getValue());
});
editor_<%=passage._id%>.setOptions({
fontSize: "10pt"
});
</script>
<!-- <code-input template="code-input"lang="<%=passage.lang == 'daemon' ? 'javascript' : passage.lang%>"class="display_code" id="display_code_<%=passage._id%>" value="<%=passage.code || ''%>"></code-input> -->
<textarea style="display:none;"class="passage_code" name="code" id="passage_code_<%=passage._id%>" cols="30" rows="10" autocomplete="off"><%=passage.code%></textarea>
</div>
<!-- Upload Directory -->
<%/*%>
<input id="passage_file_<%=passage._id%>"class="passage_file" name="file" type="file" autocomplete="off" webkitdirectory mozdirectory msdirectory odirectory directory />
<%*/%>
<input id="passage_file_<%=passage._id%>"class="passage_file" name="file" type="file" autocomplete="off" multiple/>
<%if(passage.filename){%>
<span id="remove-file-<%=passage._id%>"style="cursor:pointer;">Remove Files</span>
<%}%>
<div style="display:none;"id="passage_thumbnail_<%=passage._id%>">
<img id="thumbnail_image_<%=passage._id%>"src="" alt="">
<input id="thumbnail_clip_<%=passage._id%>"type="hidden" name="thumbnail">
</div>
<div id="passage_advanced_<%=passage._id%>"class="passage_advanced">
<br>
<div>Programming Language:</div><br>
<input autocomplete="off" id="passage_ext_<%=passage._id%>"class="passage_ext passage_lang" value="<%=passage.lang%>" type="text"name="lang"placeholder="Programming Language">
<script>
$(function(){
$(document).on('keyup', '#passage_ext_<%=passage._id%>', function(){
switch($(this).val()){
case 'rich':
$('.input-field-<%=passage._id%>').hide();
$('.rich_input_<%=passage._id%>').show();
break;
case 'mixed':
$('.input-field-<%=passage._id%>').hide();
$('.mixed_input_<%=passage._id%>').show();
break;
default:
$('.input-field-<%=passage._id%>').hide();
$('.d-code-input-<%=passage._id%>').show();
editor_<%=passage._id%>.session.setMode("ace/mode/" + $(this).val());
}
});
});
</script>
<div style="margin-top: 25px;">File Path:</div><br>
<input autocomplete="off"id="passage_filestreampath_<%=passage._id%>"class="passage_ext" value="<%=passage.fileStreamPath%>" type="text"name="filestreampath"placeholder="">
<%if(user && user.admin){%>
<br>
<%if(passage.mainFile){%>
<div style="color:red;">MAINFILE</div>
<%}else{%>
<button id="make_mainfile_<%=passage._id%>">Make Mainfile</button>
<%}%>
<%if(passage.mainFile){%>
<br>
<button id="make_mainfile_<%=passage._id%>">Run File</button>
<%}%>
<%}%>
<div style="margin-top: 25px;">Bibliography:</div><br>
<input id="passage_bibliography_<%=passage._id%>"class="passage_ext" value="<%=passage.bibliography%>" type="text"name="bibliography"placeholder="Additional Source Info">
<!-- <div style="margin-top: 25px;">Inputs:</div><br>
<input type="text"placeholder="input1" class="passage_input"><br>
<button class="passage_button">More Inputs</button><br><br> -->
<!-- <div style="margin-top: 25px;">Output:</div><br>
<textarea class="passage-textarea"placeholder="Output"name="" id="" cols="30" rows="10"></textarea> -->
<textarea style="display:none;"class="passage_license" name="license" id="passage_license_<%=passage._id%>" cols="30" rows="10" placeholder="LICENSE">All modules submitted to CES must first comply with the terms and agreements. You are allowed to utilize this work through citations on christianengineeringsolutions.com. <%=passage.license%></textarea>
</div>
<ul class="passage_tabs">
<li id="passage_executable_<%=passage._id%>"class="passage_tab passage_tab_open_advanced view_code">Advanced</li>
</ul>
<br>
<div class="add-source"id="add-source-<%=passage._id%>">+ Add Source</div>
<br>
<div class="new-sources"id="new-sources-<%=passage._id%>">
Click "cite" in the <b id="b-bar-<%=passage._id%>"class="b-bar">Bookmarks Bar</b>
<br><br>
</div>
<br>
</form>
<!-- Evaluation of a passage script (html/css/js) -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js"></script>
<title><%=passage.title%></title>
<style><%=passage.displayCSS%></style>
<script src="/jquery.min.js"></script>
</head>
<body>
<%-passage.displayHTML%>
<script><%-passage.libs%></script>
<script><%-passage.lang == 'daemon' || passage.lang == 'daemonFrame' ? passage.displayCode : ''%></script>
<script><%-passage.displayJavascript%></script>
</body>
</html>
<!-- TODO:
Add sync button (admin)
Add Mainfile only Toggle Button
-->
<%- include('html_head') %>
<link rel="stylesheet" type="text/css" href="/css/new.css">
<link rel="stylesheet" type="text/css" href="/css/mobile.css">
</head>
<%- include('header') %>
<%- include('header2', {
page: 'more'
}) %>
<%-include('menu')%>
<%-include('sidebar')%>
<%if(!ISMOBILE){%>
<%- include('member_box') %>
<%}%>
<input id="chief_passage_id"type="hidden" value="<%=passage.id || root%>"name="">
<input type="hidden" value="false", id="is_profile"/>
<input type="hidden" id="selection">
<div id="page_title_container">
<%if(passage.parent != null){%>
<div data-url="/passage/<%=encodeURIComponent(passage.parent.title)%>/<%=passage.parent._id%>"id="parent_title"><%=passage.parent.title%></div>
<%}%>
<%if(passageTitle){%>
<div id="page_title"><%= decodeURIComponent(passageTitle)%></div>
<%}%>
</div>
<div style="margin:auto;text-align: center;">
<%if(user && user.admin){%>
<button id="filestreamsync">Sync</button>
<%}%>
<%if(mainFiles){%>
<button onclick="window.location.href='/filestream/false'">All Matches</button>
<%}else{%>
<button onclick="window.location.href='/filestream/true'">Active Files (Mainfiles) Only</button>
<%}%>
</div>
<%if((user && passage.id == 'root') || (user && (passage.public || passageUsers.includes(user._id.toString())))){%>
<%if(passage.id == 'root' && passage.public_daemon != 2 && passage.default_daemon != true){%>
<button title="Add Passage"id="add_passage_button">+</button>
<%}%>
<%}%>
<br id="top_spacer">
<div id="passage_wrapper">
<!-- Show passage list or search list -->
<%if(passages){%>
<%- include('passages') %>
<%}else if (passage){%>
<!-- Just show one passage -->
<%- include('passage', {passage: passage, sub: sub, subPassages: subPassages}) %>
<%} %>
</div>
<div id="passage_form_wrapper"></div>
<%if((user && passage.id == 'root') || (user && (passage.author._id == user._id || passage.public || passageUsers.includes(user._id.toString())))){%>
<%if(passage.id != 'root' && passage.public_daemon != 2 && passage.default_daemon != true){%>
<button title="Add Passage"id="add_passage_button">+</button>
<%}%>
<%}%>
<br>
</div>
<%if(passages){%>
<div class="passage"id="view_more">View More</div>
<%}else if (passage && passage.public == true){%>
<div class="passage"id="view_more">View More</div>
<%} %>
<%- include('footer') %>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<div title="Scroll down"id="scroll-to-bottom"><ion-icon title="Scroll Down"src="/images/ionicons/chevron-down-outline.svg"></ion-icon></div>
<div id="footer">
<br>
<div style="color:white;margin-bottom:10px;">Infinity Forum</div>
<div style="font-size:0.7em;font-weight:lighter;"><a style="text-decoration: none;color:lightgrey;"target="__blank"href="https://github.com/ChristianEngineeringSolutions/ChristianEngineeringSolutions">Github</a></div>
<!-- <div style="color:black;font-style:italic;">Powered by Infinity-Forum</div> -->
<br>
</div>
<!-- <script>codeInput.registerTemplate("code-input", codeInput.templates.prism(Prism));</script> -->
<script>
// codeInput.registerTemplate("code-input", codeInput.templates.prism(Prism));
// codeInput.registerTemplate("syntax-highlighted",
// codeInput.templates.hljs(
// hljs,
// [
// new codeInput.plugins.Autodetect(),
// new codeInput.plugins.Indent()
// ]
// )
// );
</script>
<%DAEMONS.forEach(function(daemon){%>
<%if(daemon.lang == 'daemonFrame'){%>
<iframe class="iframe" src="/eval/<%=daemon._id%>" frameborder="0" sandbox="allow-scripts allow-same-origin"></iframe>
<%}%>
<%});%>
</body>
</html>
<%- include('html_head') %>
<link rel="stylesheet" type="text/css" href="/extra/slider/slide.css" />
<!-- <link rel="stylesheet" type="text/css" href="/infinity/css/start.css" /> -->
<script type="text/javascript" src="/extra/slider/jquery.nivo.slider.js"></script>
<link rel="stylesheet" type="text/css" href="/css/new.css">
<link rel="stylesheet" type="text/css" href="/css/forum.css">
<script type="text/javascript" src="/js/forum.js"></script>
<link rel="stylesheet" type="text/css" href="/css/mobile.css">
</head>
<%- include('header') %>
<%- include('header2', {
page: 'forum'
}) %>
<%-include('menu')%>
<%-include('sidebar')%>
<%- include('member_box') %>
<input id="clean_editor"type="hidden" name=""value='<%- include("clean_editor", {passage: {}, page: 'forum', whichPage: 'forum'})%>'/>
<input id="last_search"type="hidden" name=""autocomplete="off">
<br><br>
<div id="forum_nav">
<div id="forum_nav_1"><a href="#">Infinity-forum</a></div> <i class="fa fa-long-arrow-right fa-lg"></i>
<div id="forum_nav_2"><span></span><!-- <span style="text-align:center;">
<ul>
<li><b>General</b></li>
<li><a href="#f=$row[ID]/">General Discussion</a></li>
<li><a href="#f=$row[ID]/">Fun</a> «</li>
<li> </li>
</ul></span> --></div> <i class="fa fa-long-arrow-right fa-lg"></i> <!--
--><div id="forum_nav_3" class="forum_nav_active"><span></span></div> <i class="fa fa-long-arrow-right fa-lg"></i> <!--
--><div id="forum_nav_4"></div>
<br><br id="br-after">
<div id="forum-pages">
</div>
</div><br/>
<div id="main">
<div class="forum_1">
<%- include('forum_body', {scripts: scripts}); %>
</div>
</div>
<div class="forum_box">
<%var i = 0;%>
<%for(const category of categories){%>
<div class="forum">
<div class="cat_title">
<span> </span>
<%=category.title%>
</div>
<div class="subcat">
<table class="tbl_subcat">
<tr>
<td>Name</td>
<td>Topics</td>
<td>Posts</td>
<td>Last Post</td>
<%for(const cat of subcats){%>
<%if(cat.parent._id.toString() == category._id.toString()){%>
<tr>
<td><a href="#cat/<%=cat.title.replace(' ', '_')%>/<%=cat._id%>"><b><%=cat.title%></b>
<br/><i><%=cat.content.replace(/<[^>]*>?/gm, '');%></i>
<i>
<%for(const subforum of subforums){%>
<%if(subforum.parent._id.toString() == cat._id.toString()){%>
<a href="#cat/<%=subforum.title.replace(' ', '_')%>/<%=subforum._id%>"><%=subforum.title%></a>
<%}%>
<%}%>
</a></td>
<td><%=scripts.getCategoryTopicsNum(cat);%></td>
<td><%=scripts.getNumPosts(cat);%></td>
<td><%-scripts.lastPost(cat);%></td>
</tr>
<%}%>
<%}%>
</table>
</div><br/>
</div>
<%++i;%>
<%}%>
</div>
<div id="header">
<%DAEMONS.forEach(function(daemon){%>
<%=daemon.html%>
<%});%>
<input type="hidden" id="DOMAIN"value="<%=DOMAIN%>">
<div id="application-bar">
<ul id="application-bar-options">
<li class="application-bar-option" style="color: #353535;">Sasame v3.1</li>
<li class="application-bar-option">File</li>
<li class="application-bar-option">Edit</li>
<li class="application-bar-option">Selection</li>
<li class="application-bar-option">View</li>
<li class="application-bar-option">Go</li>
<li class="application-bar-option">Help</li>
</ul>
</div>
<div id="control_panel">
<div id="control_nav">
<div id="main_header"style="display:flex;text-align:center;padding:15px;">
<a href="/" class="basic_link">
<!-- <div id="perm_chapter">Christian Engineering Solutions</div> -->
</a>
<%if(LOCAL == 'true'){%>
<%if(CESCONNECT){%>
<%var color = 'green';%>
<%}else{%>
<%var color = 'red';%>
<%}%>
<!-- <ion-icon data-cesconnect="false"class="<%=color%>"id="remote_toggle"title="Remote"src="/images/ionicons/sync-circle.svg"></ion-icon> -->
<%}%>
<ion-icon style="font-size:1.5em;" id="menu-button"title="Menu"src="/images/ionicons/menu-sharp.svg"></ion-icon>
<div style="margin:auto;margin-top:-5px;"><span id="home_link">Infinity Forum</span></div>
<!-- <div style="font-size:1.1em">Infinity Forum</div> -->
</div>
<div id="options">
<a href="https://github.com/ChristianEngineeringSolutions/ChristianEngineeringSolutions/blob/master/blender.py" target="_blank"><ion-icon id="ppe_3d"class="ppe_option"title="3d Mode"src="/images/ionicons/cube-outline.svg"></ion-icon></a>
<ion-icon data-select="off"id="ppe_select"class="ppe_option"title="Select (q)"src="/images/ionicons/scan-outline.svg"></ion-icon>
<ion-icon id="ppe_mutate"class="ppe_option"title="Mutate (m)"src="/images/ionicons/color-palette-outline.svg"></ion-icon>
<ion-icon id="ppe_erase"class="ppe_option"title="Erase (e)"src="/images/ionicons/square-outline.svg"></ion-icon>
<ion-icon id="ppe_search_icon"class="ppe_option"title="Search (SPC)"src="/images/ionicons/search-outline.svg"></ion-icon>
</div>
<!-- <div id="tab_panel">
<ul id="tab_list">
<li id="new_tab" class="tab">+</li>
</ul>
<br><br><br>
</div> -->
<br><br><br>
</div>
<br>
<%- include('ppe') %>
</div>
</div>
<div class="extra">
<div id="donate">Some text here.<br>
<div id="slider-result">15$</div>
<div class="Dslider"></div>
<input type="hidden" id="hidden"/>
<div id="donate_btn">Donate</div>
</div>
<div id="feedback">
<form action="/feedback/send" method="post" id="send_feedback">
<div id="feed_box">
<div id="feed_box_1">
<table id="feed_box_1_tbl">
<tr>
<th>Leave feedback 1/4<hr /></th>
</tr>
<tr>
<td>Please leave feedback here to help us make this site better; you can choose to be anonymous.<br/>
We look over the feedback to know how we can improve the site and get what users want.</td>
</tr>
<tr><td> </td></tr>
<?php
if ($logged)
{
echo '<tr><td>Do you want to be anonymous when leaving feedback?</td></tr>';
echo '<tr><td><input type="checkbox" name="anon" id="fee_anon" /> Check for Yes</td></tr>';
}
?>
</table>
<div class="btn" id="feed_next_1">Next</div>
</div>
<div id="feed_box_2">
<table id="feed_box_2_tbl">
<tr>
<th colspan="13">Leave feedback 2/4<hr /></th>
</tr>
<tr>
<td colspan="13">What is your overall impression of the layout?</td>
</tr>
<tr>
<td align="right">Terrible</td>
<td width="35px" align="right"><input type="radio" name="fee_l" value="0" class="fee_l" /></td>
<td><input type="radio" name="fee_l" value="1" class="fee_l" /></td>
<td><input type="radio" name="fee_l" value="2" class="fee_l" /></td>
<td><input type="radio" name="fee_l" value="3" class="fee_l" /></td>
<td><input type="radio" name="fee_l" value="4" class="fee_l" /></td>
<td><input type="radio" name="fee_l" value="5" class="fee_l" /></td>
<td><input type="radio" name="fee_l" value="6" class="fee_l" /></td>
<td><input type="radio" name="fee_l" value="7" class="fee_l" /></td>
<td><input type="radio" name="fee_l" value="8" class="fee_l" /></td>
<td><input type="radio" name="fee_l" value="9" class="fee_l" /></td>
<td width="35px" align="left"><input type="radio" name="fee_l" value="10" class="fee_l" /></td>
<td align="left">AWESOME!!!</td>
</tr>
<tr><td> </td></tr>
<tr>
<td colspan="13">How easy is it to navigate the site?</td>
</tr>
<tr>
<td align="right">Extremely easy</td>
<td width="35px" align="right"><input type="radio" name="fee_n" value="0" class="fee_l" /></td>
<td><input type="radio" name="fee_n" value="1" class="fee_n" /></td>
<td><input type="radio" name="fee_n" value="2" class="fee_n" /></td>
<td><input type="radio" name="fee_n" value="3" class="fee_n" /></td>
<td><input type="radio" name="fee_n" value="4" class="fee_n" /></td>
<td><input type="radio" name="fee_n" value="5" class="fee_n" /></td>
<td><input type="radio" name="fee_n" value="6" class="fee_n" /></td>
<td><input type="radio" name="fee_n" value="7" class="fee_n" /></td>
<td><input type="radio" name="fee_n" value="8" class="fee_n" /></td>
<td><input type="radio" name="fee_n" value="9" class="fee_n" /></td>
<td width="35px" align="left"><input type="radio" name="fee_n" value="10" class="fee_n" /></td>
<td align="left">How do I get out of here?</td>
</tr>
</table>
<div class="btn" id="feed_next_2">Next</div>
</div>
<div id="feed_box_3">
<table id="feed_box_3_tbl">
<tr>
<th colspan="13">Leave feedback 3/4<hr /></th>
</tr>
<tr>
<td colspan="13">What is your overall impression of the functionality?</td>
</tr>
<tr>
<td align="right">You call that functionality? </td>
<td width="35px" align="right"><input type="radio" name="fee_f" value="0" class="fee_f" /></td>
<td><input type="radio" name="fee_f" value="1" class="fee_f" /></td>
<td><input type="radio" name="fee_f" value="2" class="fee_f" /></td>
<td><input type="radio" name="fee_f" value="3" class="fee_f" /></td>
<td><input type="radio" name="fee_f" value="4" class="fee_f" /></td>
<td><input type="radio" name="fee_f" value="5" class="fee_f" /></td>
<td><input type="radio" name="fee_f" value="6" class="fee_f" /></td>
<td><input type="radio" name="fee_f" value="7" class="fee_f" /></td>
<td><input type="radio" name="fee_f" value="8" class="fee_f" /></td>
<td><input type="radio" name="fee_f" value="9" class="fee_f" /></td>
<td width="35px" align="left"><input type="radio" name="fee_f" value="10" class="fee_f" /></td>
<td align="left">Excellent!</td>
</tr>
<tr><td> </td></tr>
<tr>
<td colspan="13">How easy was it to understand what the site is about?</td>
</tr>
<tr>
<td align="right">I still have no clue. </td>
<td width="35px" align="right"><input type="radio" name="fee_a" value="0" class="fee_a" /></td>
<td><input type="radio" name="fee_a" value="1" class="fee_a" /></td>
<td><input type="radio" name="fee_a" value="2" class="fee_a" /></td>
<td><input type="radio" name="fee_a" value="3" class="fee_a" /></td>
<td><input type="radio" name="fee_a" value="4" class="fee_a" /></td>
<td><input type="radio" name="fee_a" value="5" class="fee_a" /></td>
<td><input type="radio" name="fee_a" value="6" class="fee_a" /></td>
<td><input type="radio" name="fee_a" value="7" class="fee_a" /></td>
<td><input type="radio" name="fee_a" value="8" class="fee_a" /></td>
<td><input type="radio" name="fee_a" value="9" class="fee_a" /></td>
<td width="35px" align="left"><input type="radio" name="fee_a" value="10" class="fee_a" /></td>
<td align="left">I knew it before I came here!</td>
</tr>
</table>
<div class="btn" id="feed_next_3">Next</div>
</div>
<div id="feed_box_4">
<table id="feed_box_4_tbl">
<tr>
<th colspan="13">Leave feedback 4/4</th>
</tr>
<tr>
<td colspan="13">Leave comments or suggestions here.</td>
</tr>
</table>
<textarea id="feed_com" name="comments"></textarea>
<div class="btn" id="feed_next_4">Send</div>
</div>
</div>
<div id="fee_err">Something went wrong; please check that you have marked all questions.</div>
</form>
</div>
</div>
<div id="top">
<span id="logo" onclick="window.location = '/';"> </span><span id="extra"></span><span id="extra2"></span><!--
--><span id="menu">
<!-- <?php
//absolute top links as list
System::listLinks(PAGE);
?> -->
<a id="link-start"class="header2-link"href="/" active="">Start</a>
<a id="link-stream"class="header2-link"href="/stream">Stream</a>
<a id="link-forum"class="header2-link"href="/forum">Forum</a>
<a id="link-projects"class="header2-link"href="/projects">Projects</a>
<a id="link-more"class="header2-link">More</a>
</span>
<script>
$(function(){
$('.header2-link').removeAttr('active', '');
$('#link-<%=page%>').attr('active', 'true');
});
</script>
<!-- <div class="extra-btn1">
<div class="extra_icon1"></div>
</div>
<div class="extra-btn2">
<div class="extra_icon2"></div>
</div> -->
<% if(user != null){ %>
<div class="member_bar">
<div id="member_bar_body">Welcome <b><a href="/profile"><%=user.name%></a></b>!
<div id="member_bar_links">
<a class='member_link'href="/stream">Stream</a>
<a class='member_link'href="/forum">Forum</a>
<a class='member_link'href="/projects">Projects</a>
<a class='member_link'href="/tasks">Tasks</a>
</div>
</div>
</div>
<div id="member_bar_icons">
<a href="/profile"><div id="status_icon"><i class="fa fa-user fa-lg status_icon user-1" alt="status" title="status"></i></a>
<span>
<label><i class='fa fa-user user-$id' alt="$id" title="$name"></i> $name</label>
</span>
</div>
<%if(user.admin){%>
<a class="fa fa-magic fa-lg"title="Admin"href="/admin"></a>
<%}%>
<!-- <a href="/lounge/"class='fa fa-lg fa-exclamation'></a>--> <a title="Messages"href="/messages"class='fa fa-envelope fa-lg'style='color:grey'></a> <a alt="settings" title="settings"href="/profile"class='fa fa-cog fa-lg'style='color:grey'></a>
<a class='fa fa-sign-out fa-lg'href="/logout"alt="logout" title="logout"style='color:grey'></a>
</div>
</div>
<%}%>
</div>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G804TWSWNE"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-G804TWSWNE');
</script>
<%if(user == null){%>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
<%}%>
<meta charset="UTF-8">
<!-- Force Desktop View -->
<!-- <meta name="viewport" content="width=1024"> -->
<title>Infinity Forum</title>
<link href='https://fonts.googleapis.com/css?family=Oswald:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/a11y-light.min.css">
<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
<link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/book.css">
<link rel="stylesheet" href="/css/passage.css">
<link rel="stylesheet" href="/css/login_register_form.css">
<link rel="stylesheet" href="/css/profile.css">
<!-- <link rel="stylesheet" href="/css/mobile.css"> -->
<link rel="shortcut icon" type="image/x-icon" href="/images/small_logo.jpg" />
<script src="/jquery.min.js"></script>
<script src="/jquery-ui.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="/js/jquery.modal.js"></script>
<link rel="stylesheet" href="/jquery.modal.min.css" />
<link rel="stylesheet" href="/jquery-ui.css">
<script type="module" src="/ionicons.esm.js"></script>
<script nomodule="" src="/ionicons.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js"></script>
<link rel="stylesheet" type="text/css" href="/css/ppe.css">
<link rel="stylesheet" type="text/css" href="/css/users.css">
<link rel="stylesheet" type="text/css" href="/css/fonts.css">
<link rel="stylesheet" type="text/css" href="/css/header.css">
<link rel="stylesheet" type="text/css" href="/css/sidebar.css">
<link rel="stylesheet" type="text/css" href="/css/footer.css">
<script src="https://cdn.socket.io/4.6.0/socket.io.min.js" integrity="sha384-c79GN5VsunZvi+Q/WObgk2in0CbZsHnjEqvFxC5DxHn9lTfNce2WW6h2pH6u/kF+" crossorigin="anonymous"></script>
<script src="https://unpkg.com/three@0.87.1/build/three.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/0.149.0/three.min.js" integrity="sha512-6p9lGA4Cm89KiwN1CixiOVQU2H9e13LeYoN6/Hj/qoUhtrMW5vNiqQz9Z96Z7/I8u89ghL6SPBz9na5HFVzF3g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> -->
<script src="https://unpkg.com/three@0.87.1/examples/js/loaders/GLTFLoader.js"></script>
<!-- <script src="https://unpkg.com/three@0.87.1/examples/js/loaders/OBJLoader.js"></script> -->
<!-- TEMP CDNs -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js" integrity="sha512-bgHRAiTjGrzHzLyKOnpFvaEpGzJet3z4tZnXGjpsCcqOnAH6VGUx9frc5bcIhKTVLEiCO6vEhNAgx5jtLUYrfA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!--Prism-->
<link id="import-theme" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/themes/prism.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/components/prism-core.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
<!-- HLJS -->
<link rel="stylesheet"
href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/WebCoder49/code-input@1.1/code-input.css">
<script src="/js/code-input.js"></script>
<!-- <script src="https://cdn.jsdelivr.net/gh/WebCoder49/code-input@1.1/code-input.js"></script> -->
<script src="https://cdn.jsdelivr.net/gh/WebCoder49/code-input@1.1/plugins/indent.js"></script>
<script src="https://cdn.jsdelivr.net/gh/WebCoder49/code-input@1.1/plugins/autodetect.js"></script>
<script>
codeInput.registerTemplate("code-input", codeInput.templates.prism(Prism, [new codeInput.plugins.Indent()]));
// codeInput.registerTemplate("syntax-highlighted",
// codeInput.templates.hljs(
// hljs,
// [
// new codeInput.plugins.Autodetect(),
// new codeInput.plugins.Indent()
// ]
// )
// );
</script>
<!-- <script src=" https://cdn.jsdelivr.net/npm/ace-builds@1.32.0/src-min-noconflict/ace.min.js "></script>
<link href=" https://cdn.jsdelivr.net/npm/ace-builds@1.32.0/css/ace.min.css " rel="stylesheet"> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.32.0/ace.js"></script>
<script src="https://cdn.quilljs.com/1.3.6/quill.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.min.css">
<!-- /TEMP -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.4.1/jspdf.debug.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/2.3.4/jspdf.plugin.autotable.min.js"></script>
<!-- Must minify and consider moving to footer -->
<script src="/js/new.js"></script>
<script src="/js/book.js"></script>
<script src="/js/sidebar.js"></script>
<script src="/js/header.js"></script>
<script src="/js/passage.js"></script>
<script src="/js/ppe.js"></script>
<%-include('loading')%>
<%-include('daemon_head')%>
<%- include('html_head') %>
<link rel="stylesheet" type="text/css" href="/extra/slider/slide.css" />
<!-- <link rel="stylesheet" type="text/css" href="/infinity/css/start.css" /> -->
<script type="text/javascript" src="/extra/slider/jquery.nivo.slider.js"></script>
<link rel="stylesheet" type="text/css" href="/css/new.css">
<link rel="stylesheet" type="text/css" href="/css/mobile.css">
</head>
<body>
<%- include('header') %>
<%- include('header2', {
page: 'start'
}) %>
<%-include('menu')%>
<%-include('sidebar')%>
<%- include('member_box') %>
<div id="middle">
<div id="wrapper" >
<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider">
<img src="/extra/slider/26.jpg" title="A place where your ideas become reality."/>
<!-- <img src="/slider/3.jpg" title="A place where you can create."/> -->
<img src="/extra/slider/8.jpg" title="A place where you can learn."/>
<img src="/extra/slider/20.jpg" title="A place where you can collaborate with people from all over the world."/>
<!-- <img src="/slide/25.jpg" title="A place where you can be different."/> -->
</div>
</div>
</div>
</div>
<div id="mobile-middle">
<img style="width:100%;margin-top:63px;"src="/extra/slider/20.jpg" title="A place where your ideas become reality."/>
</div>
<div id="mid_bar" class="bar"style="padding:0px;">
<!-- <ion-icon style="font-size:4em;color:black"></ion-icon> -->
<a id="tour-link"style="color:#000"class="fa fa-play-circle fa-4x"></a>
</div>
<span id="lead1">Be productive, creative, and social at the same time.</span>
<div id="main2">
<div id="main-body">
<span class="lead lead1 i">Be productive, creative, and social at the same time.</span>
<br><br>
<div class="mobile-hide">
<br><br>
<a href="#idea"class="feature">
<i class="fa fa-lightbulb-o fa-4x"></i><br>
<span class="feature-text">Idea</span>
</a>
<span class="mobile-hide">  </span>
<i class="feature">
<i class="fa fa-plus fa-3x math-icon"></i><br>
</i>
<span class="mobile-hide">  </span>
<a href="#information"class="feature">
<i class="fa fa-globe fa-4x"></i><br>
<span class="feature-text">Information</span>
</a>
<span class="mobile-hide">  </span>
<i class="feature">
<i class="fa fa-plus fa-3x math-icon"></i><br>
</i>
<span class="mobile-hide">  </span>
<a href="#collaboration"class="feature">
<i class="fa fa-users fa-4x"></i><br>
<span class="feature-text">Collaboration</span>
</a>
<span class="mobile-hide">  </span>
<i class="feature">
<i class="fa fa-plus fa-3x math-icon"></i><br>
</i>
<span class="mobile-hide">  </span>
<a href="#freedom"class="feature">
<i class="fa fa-flag fa-4x"></i><br>
<span class="feature-text">Freedom</span>
</a><span class="mobile-hide">  </span>
<i class="feature"><span class="fa-4x math-icon">=</span></i>
<span class="mobile-hide">  </span>
<a href="#amazing"class="feature">
<i class="fa fa-check fa-4x"></i><br>
<span class="feature-text">Something Amazing</span>
</a>
<br>
<br>
<br>
<br>
</div>
<div id="idea"class="panel panel-default">
<div class="panel-heading">
<span class="panel-title lead"><i class="fa fa-lightbulb-o fa-lg"></i> Come up with an idea.</span>
</div>
<div class="panel-body lead">
Infinity makes it easy to come up with ideas. <br> Consult the community for advice or check out
the Projects page for inspiration. <br> And it doesn't just have to be your own idea that
captures your imagination: <br> The Forums are teeming with brilliant discussions
and several projects are awaiting more contributors.
<br><br>
<!-- <button class="btn">Launch Your Idea</button> -->
</div>
</div>
<br>
<div id="information"class="panel panel-default">
<div class="panel-heading">
<span class="panel-title lead"><i class="fa fa-globe fa-lg"></i> Learn more about what you want to do.</span>
</div>
<div class="panel-body lead">
One of the most difficult things about starting a project is that you never seem to know enough. <br>
Time to forget your troubles: The Infinity-Forum community boasts a wide variety of people in every field. <br>
Use our social tools to get into contact with some potential partners and mentors. <br>
And Infinity isn't all just business, either! <br>
Take advantage of community activities to make real friends who share your interests.
<br><br>
<!-- <button class="btn btn-success">Learn Something New</button> -->
</div>
</div>
<br>
<div id="collaboration"class="panel panel-default">
<div class="panel-heading">
<span class="panel-title lead"><i class="fa fa-users fa-lg"></i> Find people to help you do it.</span>
</div>
<div class="panel-body lead">
Now that you have an idea and the knowledge to pursue it, your going to need some help. <br>
Time to start networking and getting your idea out there. <br>
Start a project and invite people, public or private. <br>
Use the Infinity Workspace to keep track of what needs to get done. <br>
And pay attention to rankings and statistics to keep an eye out for interesting people.
<br><br>
<!-- <button class="btn btn-primary">Find Awesome People</button> -->
</div>
</div>
<br>
<div id="freedom"class="panel panel-default">
<div class="panel-heading">
<span class="panel-title lead"><i class="fa fa-flag fa-lg"></i> Take advantage of the freedom Infinity-Forum offers.</span>
</div>
<div class="panel-body lead">
Freedom of knowledge and the power to use it is the defining concept here. <br>
We actually make it a priority to work with our fellow community members. <br>
We provide free plans for groups that require it. <br>
We support open source. <br>
Infinity-Forum was designed to be a pathway to success, for anyone. <br>
The last thing we will do is get in the way.
<br><br>
<!-- <button class="btn btn-danger">Contribute</button> -->
</div>
</div>
<br>
<i id="amazing"class="fa fa-check fa-4x"></i>
<p class="lead">
<h2>
In just one place, make your dreams come to fruition. <br>
What will you create?
<br><br>
<!-- <button class="btn btn-warning">Get Started</button> -->
</h2>
<br>
<br>
<br>
</p>
</div>
</div>
</div>
<div class="tour"><div class="tour-main">Video Coming Soon!</div></div>
<div class="boxx"><div class="boxx-main"></div></div>
<script type="text/javascript">
var specials = ['#idea', '#information', '#collaboration', '#freedom', '#amazing'];
$('a[href*=#]').click(function() {
alert(1);
if($.inArray($(this).attr('href'), specials) !== -1){
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
}
});
</script>
</body>
<div class="leader">
<%if(rank){%>
<div id="lead-num-<%=i + ((page-1)*20)%>"class="lead-num"><%=i + ((page-1)*20)%></div>
<%}%>
<a class="basic_link" href="/profile/<%=user.username%>/<%=user._id%>"><%=user.name%></a>
</div>
<%- include('html_head') %>
<link rel="stylesheet" type="text/css" href="/css/new.css">
<link rel="stylesheet" type="text/css" href="/css/mobile.css">
</head>
<%- include('header') %>
<%- include('header2', {
page: 'more'
}) %>
<%-include('menu')%>
<%-include('sidebar')%>
<%if(!ISMOBILE){%>
<%- include('member_box') %>
<%}%>
<input id="chief_passage_id"type="hidden" value="root"name="">
<input type="hidden" value="leaderboard", id="is_profile"/>
<%if(!ISMOBILE){%>
<br><br><br><br><br>
<%}else{%>
<br><br>
<%}%>
<br>
<h1 style="text-align:center;">Leaderboard</h1>
<input id="search_leaderboard"placeholder="Search Leaders..." type="" name="" autocomplete="off">
<div id="leaders">
<%- include('leaders', {users: users}) %>
</div>
<div class="passage"id="view-more-leaders">View More</div>
<script type="text/javascript" src="/js/leaderboard.js"></script>
<%- include('footer') %>
<%var i = 1; %>
<%users.forEach(function(user) { %>
<%- include('leader', {user: user, page: page, i: i, rank: rank}) %>
<%++i;%>
<%});%>
<link rel="stylesheet" type="text/css" href="/css/loading.css" />
<div id="loading" class="loading-invisible"><br /><br /><br />
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<div class="circle"></div>
<div class="circle1"></div>
<div style=" color:rgba(255,255,255,0.9);
text-shadow:0 0 15px #fff; margin-top:-28px; margin-left:10px; font-weight:bolder">Loading...</div>
</div>
<script src="/js/loading.js" type="text/javascript"></script>
<%- include('html_head') %>
<link rel="stylesheet" type="text/css" href="/css/new.css">
<link rel="stylesheet" type="text/css" href="/css/mobile.css">
</head>
<%- include('header') %>
<%- include('header2', {
page: 'loginform'
}) %>
<%-include('menu')%>
<%-include('sidebar')%>
<br><br><br><br class="mobile_none"><br class="mobile_none"><br class="mobile_none">
<input id="chief_passage_id"type="hidden" value="root"name="">
<h1 style="text-align: center;margin-bottom: 10px;">Login</h1>
<form id="login_form" action="/login/" method="POST">
<div>
<label>Username or Email:</label>
<input id="login_username"class=""type="text" name="username"autocomplete="off"/>
</div>
<div>
<label>Password:</label>
<input id="login_password"class=""type="password" name="password"autocomplete="off"/>
</div>
<div>
<input id="login_button"class="log-btn"type="submit" value="Login"autocomplete="off"/>
</div>
<a href="/recover"class="rec-pwd-link">Recover Password</a>
</form>
<h1 style="text-align: center;margin-bottom: 10px;">Register</h1>
<form id="register_form" action="/register/" method="POST">
Username: <span id="register_username_load"></span>
<br><br>
<div>
<label>Name:</label>
<input placeholder="" id="register_username" type="text" name="username"autocomplete="off" required/>
</div>
<div>
<label>Email:</label>
<input id="register_email" type="email" name="email"autocomplete="off" required/>
</div>
<div>
<label>Password:</label>
<input id="register_password" type="password" name="password"autocomplete="off" required/>
</div>
<div>
<label>Confirm Password:</label>
<input id="register_confirm" type="password" name="passwordConf"autocomplete="off" required/>
</div>
<br>
<div>
<input autocomplete="off"type="checkbox" required><label>I accept the <a class="terms-link"target="_blank"href="/terms">terms</a></label>
</div>
<br>
<div class="g-recaptcha" data-sitekey="6Ldgf0gpAAAAAFY_v7hYut-fjEyU6MUfsKZax6hj"></div>
<div>
<input id="register_button"class="log-btn"type="submit" value="Register"/>
</div>
</form>
<script src="/js/login_register_form.js"></script>
<br><br><br><br>
<%- include('footer') %>
<%if(user == null){%>
<div class="member_box">
<div class="inner_box1">
<div id="box_top">
<div id="box_title">Member Login</div>
<div class="box_icon1"></div>
</div>
<div class="box_cont">
<form action="/login/" method="post" id="login_frm">
Username or Email:<br/>
<input class="m-box-input" type="text" tabindex="1" name="username" required pattern=".{3,16}" placeholder="Enter your username" id="login_usr" maxlength="20" /><br/>
Password:<br/>
<input class="m-box-input" type="password" tabindex="2" name="password" required pattern=".{3,16}" placeholder="Enter your password" id="login_pwd" autocomplete="off" maxlength="30" /><br />
<input class="m-box-input" type="hidden" name="token" value="<?php echo $token; ?>" />
<input id="box-login"class="m-box-input" type="submit" tabindex="3" class="login_btn" value="Login"><br /><br /></form>
</div>
</div>
<div class="inner_box2">
<div id="box_top">
<div id="box_title">Register</div>
<div class="box_icon2"></div>
</div>
<div class="box_cont">
<form action="/register/" method="post" id="reg_form">
Name:<br/>
<input class="m-box-input" type="text" name="username" id="reg_usr" maxlength="16" required placeholder="Enter a username"/><br/>
Password:<br/>
<input class="m-box-input" type="password" name="password" id="reg_pwd" autocomplete="off" required placeholder="Enter a password" title="The password be between 6 and 25 chars and must contain a capitalized and lower-case letter, and a number."/><br />
Confirm Password:<br/>
<input class="m-box-input" type="password" name="passwordConf" id="reg_pwd2" autocomplete="off" required placeholder="Confirm password"/><br />
Email:<br/>
<input class="m-box-input" type="email" name="email" id="reg_email" onblur="validate.checkDub(this)" autocomplete="off" required placeholder="Enter your email" title="Enter a valid email"/><br />
<input class="m-box-input" type="checkbox" name="reg_terms" id="reg_term" value="yes" required /><label> Yes i accept the <a href="/terms" target="__blank"id="show_terms">Terms</a></label><br /><br />
Code:<br />
<div class="g-recaptcha" data-sitekey="6Ldgf0gpAAAAAFY_v7hYut-fjEyU6MUfsKZax6hj"></div>
<br />
<input class="m-box-input" type="hidden" name="reg_token" value="<?php echo $token; ?>" />
<input class="m-box-input" type="submit" class="reg_btn" id="reg_sub" value="Register" onclick="validate.register();"/><br /><br />
</form>
</div>
</div>
<div class="inner_box3">
<div id="box_top">
<div id="box_title">Recover</div>
<div class="box_icon3"></div>
</div>
<div class="box_cont">
<form action="/recover" method="post" id="rec_form">
Email:<br/>
<input class="m-box-input" type="email" name="email" required id="rec_usr" maxlength="30" placeholder="Input email"/><br/>
<input class="m-box-input" type="submit" value="Recover" class="rec_btn" />
</form>
<br /><br />
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(e) {
$(document).on('click', '#box-login', function(){
$('#login_frm').submit();
});
});
</script>
<%}%>
<div id="left-side-panel">
<div id="left-side-panel-inner">
<div style="float:left;"id="side_panel_close">
<ion-icon id="menu-close"src="/images/ionicons/menu-sharp.svg"></ion-icon>
</div>
<div id="side_panel_body">
<ul id="menu-options">
<li id="home-link"class="menu-option menu-link home-link">Home</li>
<li id="stream-link"class="menu-option menu-link">Stream</li>
<li id="forum-link"class="menu-option menu-link forum-link">Forum</li>
<li id="projects-link"class="menu-option menu-link forum-link">Projects</li>
<li id="tasks-link"class="menu-option menu-link forum-link">Tasks</li>
<!--<li id="wall-link"class="menu-option menu-link forum-link">Wall</li>-->
<%if(user != null){%>
<li id="bookmarks_icon"class="menu-option">Bookmarks</li>
<%}%>
<%if(typeof passage == 'undefined' || passage.id !== 'root'){%>
<li id="distraction_free"class="menu-option">Distraction Free Mode</li>
<%}%>
<li id="leaderboard_link"class="menu-option">Leaderboard</li>
<li id="nav_donate"class="menu-option">Invest ($)</li>
<% if(user != null){ %>
<li id="profile_link"class="menu-option">Profile</li>
<li id="messages"class="menu-option">Messages</li>
<li id="logout"class="menu-option">Log Out</li>
<li id="menu-advanced"class="menu-option">Advanced</li>
<div style="display: none;"id="advanced-menu-options">
<li id="file-stream"class="menu-option">File Stream</li>
<li data-active="false"id="graphic_mode"class="menu-option">Graphic Mode</li>
</div>
<input id="logged_in"value="true"type="hidden" name="">
<%} else{ %>
<li id="login_register_link"class="menu-option">Login/Register</li>
<input id="logged_in"value="false"type="hidden" name="">
<%} %>
<li id="menu-help"class="menu-option">Help</li>
<li id="menu-contact"class="menu-option">Contact Us</li>
</ul>
<div id="tab_panel">
<ul id="tab_list">
<li id="new_tab" class="tab">+</li>
</ul>
<br><br><br>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</div>
</div>
</div>
<%- include('html_head') %>
<link rel="stylesheet" type="text/css" href="/extra/slider/slide.css" />
<!-- <link rel="stylesheet" type="text/css" href="/infinity/css/start.css" /> -->
<script type="text/javascript" src="/extra/slider/jquery.nivo.slider.js"></script>
<link rel="stylesheet" type="text/css" href="/css/new.css">
<link rel="stylesheet" type="text/css" href="/css/mobile.css">
</head>
<body>
<%- include('header') %>
<%- include('header2', {
page: 'start'
}) %>
<%-include('menu')%>
<%-include('sidebar')%>
<%- include('member_box') %>
<input id="chief_passage_id"type="hidden" value="<%=passage.id || root%>"name="">
<input type="hidden" value="messages", id="is_profile"/>
<input type="hidden" id="selection">
<div id="page_title_container">
<%if(passage.parent != null){%>
<div data-url="/passage/<%=encodeURIComponent(passage.parent.title)%>/<%=passage.parent._id%>"id="parent_title"><%=passage.parent.title%></div>
<%}%>
<%if(passageTitle){%>
<div id="page_title"><%= decodeURIComponent(passageTitle)%></div>
<%}%>
</div>
<%if(passages){%>
<input type="hidden" id="search">
<input id="search_messages"placeholder="Search Messages..." type="" name="" autocomplete="off">
<%}else if (passage){%>
<input id="search"placeholder="Search Solutions..." type="hidden" name="" autocomplete="off">
<input id="search_passage"placeholder="Search <%=passage.title%>..." type="" name="" autocomplete="off">
<%} %>
<br id="top_spacer">
<div id="passage_wrapper">
<!-- Show passage list or search list -->
<%if(passages){%>
<%- include('passages') %>
<%}else if (passage){%>
<!-- Just show one passage -->
<%- include('passage', {passage: passage, sub: sub, subPassages: subPassages}) %>
<%} %>
</div>
<div id="passage_form_wrapper"></div>
<br>
</div>
<%if(passages){%>
<div class="passage"id="view_more">View More</div>
<%}else if (passage && passage.public == true){%>
<div class="passage"id="view_more">View More</div>
<%} %>
<%- include('footer') %>
<%if(subPassages && sub === false){%>
<ul class="page-count">
<%if(!passage.public && !passage.forum){%>
<%}else{%>
<%for(var i = 1; i < totalPages + 1; i += 1){%>
<%if(totalPages > 1){%>
<%if(!thread){%>
<a style="color:inherit;text-decoration:none;"href="/passage/<%=passage.title%>/<%=passage._id%>/<%=i%>"><li><%=i%></li></a>
<%}else{%>
<a style="color:inherit;text-decoration:none;"href="#thread/<%=passage.title%>/<%=passage._id%>/<%=i%>"><li><%=i%></li></a>
<%}%>
<%}%>
<%}%>
<%}%>
</ul>
<%}%>
<%if(sub == false && passage.subforums != null && passage.subforums.length > 0){%>
<%if(typeof subforums == 'undefined'){%>
<div id="subforums-list">
<a href="/subforums/<%=passage.title == '' ? 'Untitled' : passage.title%>/<%=passage._id%>">View Subforums</a>
</div>
<%}else{%>
<div id="subforums-list">
<a href="/passage/<%=passage.title == '' ? 'Untitled' : passage.title%>/<%=passage._id%>">View Sub Passages</a>
</div>
<%}%>
<%}%>
<div data-sub="<%=sub%>"id="passage<%=typeof altIteration == 'undefined' ? '' : altIteration%>_<%=passage._id%>" class="passage passage_<%=passage.public ? 'public' : 'private'%> <%=passage.forum ? 'passage_forum' : ''%>">
<%if(passage.mirror != null){%>
<input id="p_mirror_<%=passage._id%>"type="hidden"value="<%=passage.mirror._id%>" name="">
<%}%>
<%if(passage.bestOf != null){%>
<input id="p_bestOf_<%=passage._id%>"type="hidden"value="<%=passage.bestOf._id%>" name="">
<%}%>
<div id="passage_settings_modal_<%=passage._id%>" class="modal">
<%- include('passage_settings', {passage: passage}) %>
</div>
<div id="passage_sources_modal_<%=passage._id%>" class="modal">
<%if(passage.sourceLink != null && passage.sourceLink.length > 1){%>
<div class="passage_source_<%=passage._id%>"><a target="_blank"href="<%=passage.sourceLink%>">External Source</a></div>
<%}%>
<%if((!passage.sourceList || passage.sourceList.length < 1) && (passage.sourceLink == null || passage.sourceLink.length < 1)){%>
<div>No Sources</div>
<div id="sourcelist_<%=passage._id%>"></div>
<%}else{%>
Sources:
<div id="sourcelist_<%=passage._id%>">
<%passage.sourceList.forEach(function(source) { %>
<div class="passage_source_<%=passage._id%>"><a target="_blank"href="/passage/<%=source.title%>/<%=source._id%>"><%=source.title%></a></div>
<%});%>
</div>
<%}%>
<br>
Used In:
<%if(passage.usedIn.length == 0){ %>
No Passages
<%}%>
<%passage.usedIn.forEach(function(passage) { %>
<%-passage%>,
<%});%>
<!-- List collaborators and allow them to be added (permanent) -->
<!-- Show Additional Source info -->
<%if(passage.bibliography != null){%>
<p><%=passage.bibliography%></p>
<%}%>
</div>
<ul class="passage_options">
<% if(sub === true && (passage.author && user && user._id.toString() == passage.author._id.toString() || passage.passages.length > 0 || passage.public || passage.parent == null)){%>
<li id="passage_more_<%=passage._id%>" class="passage_option">Details</li>
<%}%>
<%if(user){%>
<li id="passage_expand_<%=passage._id%>" class="passage_option passage_option_expand">Options</li>
<span id="passage_condensed_<%=passage._id%>"class="condensed">
<!-- Show them settings only if they made the passage -->
<%if(passage.author != null && passage.author){%>
<%if(passage.author && user && passage.author._id == user._id){%>
<a class="basic_link" href="#passage_settings_modal_<%=passage._id%>" rel="modal:open"><li id="passage_settings_<%=passage.id%>" class="passage_option">Settings</li></a>
<%}%>
<%}%>
<a class="basic_link" href="#passage_sources_modal_<%=passage._id%>" rel="modal:open"><li id="passage_sources_<%=passage.id%>" class="passage_option">Sources</li></a>
<!-- Shift passage location -->
<!-- <li id="passage_download_<%=passage.id%>" class="passage_option">Download</li> -->
<%if(user){%>
<li id="passage_bookmark_<%=passage.id%>" class="passage_option">Bookmark</li>
<%}%>
<%if(passage.author && user && passage.author._id.toString() == user._id.toString()){%>
<%if(passage.public_daemon != 2 && passage.default_daemon != true){%>
<li id="passage_edit_<%=passage.id%>" data-quill="false"class="passage_option">Edit</li>
<li id="passage_update_<%=passage.id%>" class="passage_option">Update</li>
<li id="passage_delete_<%=passage.id%>" class="passage_option passage_delete">Delete</li>
<%}%>
<div id="passage-share-modal-<%=passage._id%>" class="modal">
<input class="share-passage"id="share-passage-<%=passage._id%>"type="text" placeholder="Enter Username">
</div>
<a class="basic_link" href="#passage-share-modal-<%=passage._id%>" rel="modal:open"><li id="passage_share_<%=passage.id%>" class="passage_option">Share</li></a>
<%/*%>
<li id="passage-show-more-<%=passage._id%>" class="passage_option">More</li>
<span style="display:none;"id="passage-display-more-<%=passage._id%>">
<li id="passage-flag-<%=passage._id%>" class="passage_option">Flag</li>
<%if(LOCAL == 'true'){%>
<!-- Push passage to server -->
<li id="passage_push_<%=passage.id%>" class="passage_option">Push</li>
<input type="hidden" id="full_push_passage_<%=passage._id%>" value="<%=JSON.stringify(passage)%>">
<!-- Install to FileSystem -->
<li id="passage_install_<%=passage.id%>" class="passage_option">Install</li>
<%}%>
</span>
<%*/%>
<%if(LOCAL == 'true'){%>
<!-- Push passage to server -->
<li id="passage_push_<%=passage.id%>" class="passage_option">Push</li>
<input type="hidden" id="full_push_passage_<%=passage._id%>" value="<%=JSON.stringify(passage)%>">
<!-- Install to FileSystem -->
<li id="passage_install_<%=passage.id%>" class="passage_option">Install</li>
<%}%>
<%}%>
<%if(fromOtro){%>
<!-- Displayed via CES Connect -->
<!-- Pull passage from server -->
<li id="passage_pull_<%=passage._id%>" class="passage_option">Pull</li>
<form id="pull_form_<%=passage._id%>"style="display:none" action="/pull"method="POST"enctype="multipart/form-data">
<input type="text"name="passage"value="<%=JSON.stringify(passage)%>">
<input type="text"name="thumbnail"value="">
</form>
<input id="passage_json_<%=passage._id%>"type="hidden" value="<%=JSON.stringify(passage)%>">
<%}%>
</span>
<%}else{%>
<a class="basic_link" href="#passage_sources_modal_<%=passage._id%>" rel="modal:open"><li id="passage_sources_<%=passage.id%>" class="passage_option">Sources</li></a>
<%}%>
<%if(!passage.public && sub == true && subPassages){%>
<li id="passage_alternate_<%=passage._id%>" class="passage_option">Alt</li>
<%}%>
<%if(user){%>
<li style="display:none;"id="save-alternate-<%=passage.id%>" class="passage_option">Save Alt</li>
<%}%>
</ul>
<!-- <div class="passage-box" style="text-align:center;padding:10px;margin-bottom:20px;">
<div style=""class="p-image-container">
<%if(passage.author.thumbnail != null){%>
<div class="p-thumbnail"style="display:block;background:url('/uploads/<%=passage.author.thumbnail%>');background-size:cover;background-position: center center;"id="profile_settings_image" src="/uploads/<%=passage.author.thumbnail%>"></div>
<%}else{%>
<ion-icon style="float:none;"class="profile_image"src="/images/ionicons/person-circle-outline.svg"></ion-icon>
<%}%>
</div>
<div class="p-u-stars">
70 stars given
</div> -->
<!-- <hr class="p-box-hr"> -->
<!-- </div> -->
<div class="detail-div">
<div class="p-padding-box">
<div class="toppings">
<div style=""class="p-image-container">
<%if(passage.author.thumbnail != null){%>
<div class="p-thumbnail"style="display:block;background:url('/uploads/<%=passage.author.thumbnail%>');background-size:cover;background-position: center center;"id="profile_settings_image" src="/uploads/<%=passage.author.thumbnail%>"></div>
<%}else{%>
<ion-icon style=""class="profile_image"src="/images/ionicons/person-circle-outline.svg"></ion-icon>
<%}%>
</div><div class="p-date"><%- include('profile_thumbnail', {profile: passage.author}) %>, <%=passage.date.toLocaleDateString()%><br class="mobile-show"><span class="mobile-hide">  </span><%if(passage.forum){%><ion-icon style="color:brown;"src="/images/ionicons/ellipse.svg"></ion-icon> Forum<%}else if(passage.public){%><ion-icon style="color:green;"src="/images/ionicons/ellipse.svg"></ion-icon> Task<%}else if(!passage.public){%><ion-icon style="color:red;"src="/images/ionicons/ellipse.svg"></ion-icon> Project<%}%><%if(passage.location){%> in <%-passage.location%><%}%></div></div>
<div id="detail_title_<%=passage._id%>"class="detail_title"><h3><a style="color:white;"href="/passage/<%=passage.title == '' ? 'Untitled' : passage.title%>/<%=passage._id%>"><%=passage.title%></a></h3></div>
<input value="<%=passage.params%>"id="passage_params_<%=passage._id%>"type="hidden" name="">
<%if(passage.displayContent != null && passage.displayContent != ''){%>
<hr class="hr">
<%}%>
<div class="detail_description" name="content" class="display_data_<%=passage._id%>"id="passage_detail_content_<%=passage._id%>"><%-passage.displayContent || passage.content%></div>
<!-- <ul class="passage_tabs">
<li class="passage_tab passage_tab_open_advanced">Advanced</li> -->
<!-- Display Result -->
<!-- <li class="passage_tab">Alternates</li> -->
<!-- </ul> -->
<%if(passage.author && user && passage.author._id == user._id){%>
<%- include('editor') %>
<%}else{%>
<%}%>
<canvas style="display:none;"id="thumbnail_canvas_<%=passage._id%>"></canvas>
<% if(passage.filename){ %>
<%passage.filename.forEach(function(fname, i){%>
<%if(!passage.isSVG && passage.mimeType[i] == 'image'){%>
<img class="passage-file-<%=passage._id%>"id="passage-file-<%=passage._id%>"src="/<%=getUploadFolder(passage)%>/<%=passage.filename[i]%>" alt="">
<%}else if (passage.isSVG){%>
<img class="passage-file-<%=passage._id%>"id="passage-file-<%=passage._id%>"src="/<%=getUploadFolder(passage)%>/<%=passage.filename[i]%>" alt="">
<%}else if(passage.mimeType[i] == 'audio'){%>
<%-passage.audio%>
<%}else if(passage.mimeType[i] == 'video'){%>
<%-passage.video%>
<%}else if(passage.mimeType[i] == 'model'){%>
<%if(passage.thumbnail == null){%>
<img id="p_thumbnail_<%=passage._id%>" alt="">
<!-- Create and upload thumbnail if it does not exist -->
<script>
var _id = "<%=passage._id%>";
const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera( 75, 300 / 300, 0.1, 1000 );
var srcLink = "/<%=getUploadFolder(passage)%>/<%=passage.filename[i]%>";
const renderer = new THREE.WebGLRenderer();
renderer.domElement.id = "model_thumbnail_canvas_" + _id;
renderer.domElement.style = "display:none;";
renderer.setSize( 300, 300 );
$("#p_thumbnail_" + _id).after(renderer.domElement);
//load model into scene
var loader = new THREE.GLTFLoader();
loader.load(srcLink, function(data){
scene.add( data.scene );
camera.position.z = 5;
//make sure there is light to see the object
var light = new THREE.PointLight( 0xffffcc, 20, 200 );
light.position.set( 4, 30, -20 );
scene.add( light );
var light2 = new THREE.AmbientLight( 0x20202A, 20, 100 );
light2.position.set( 30, -10, 30 );
scene.add( light2 );
renderer.render(scene, camera);
//save snapshot of canvas to thumbnail field as data url
var base64Image = renderer.domElement.toDataURL();
$('#p_thumbnail_' + _id).attr('src', base64Image);
$.ajax({
type: 'post',
url: '/update_thumbnail/',
data: {
passageID: _id,
thumbnail: base64Image
},
success: function(data){
// alert(data);
}
});
// $('#thumbnail_clip_' + id).val(base64Image);
});
</script>
<%}else{%>
<img id="p_thumbnail_<%=passage._id%>" src="/<%=getUploadFolder(passage)%>/<%=passage.thumbnail%>" alt="">
<%}%>
<%}%>
<%});%>
<%}%>
<!-- <div id="passage_details_advanced_<%=passage._id%>"class="passage_advanced"> -->
<%if(passage.lang == 'mixed' && passage.lang != 'rich'){%>
<div id="passage_detail_html_<%=passage._id%>"class="code_display display_html display_data_<%=passage._id%>"><pre><code class="language-html"></code><%=passage.displayHTML || passage.html || ''%></code></pre></div>
<div id="passage_detail_css_<%=passage._id%>"class="code_display display_css display_data_<%=passage._id%>"><pre><code class="language-css"><%=passage.displayCSS || passage.css || ''%></code></pre></div>
<div id="passage_detail_js_<%=passage._id%>"class="code_display display_js display_data_<%=passage._id%>"><pre><code class="language-javascript"><%=passage.displayJavascript || passage.javascript || ''%></code></pre></div>
<%}else if(passage.lang != 'rich'){%>
<div id="passage_detail_code_<%=passage._id%>"class="display_code display_data_<%=passage._id%>"><pre><code class="language-<%=passage.lang == 'daemon' || passage.lang == 'daemonFrame' ? 'javascript' : passage.lang%>"><%=passage.displayCode || passage.code%></code></pre></div>
<%}%>
<!-- Show .EXT -->
<!-- Show License -->
<!-- </div> -->
<input id="passage_title_<%=passage._id%>"class="passage_title" value="<%=passage.title%>" type="hidden"name="title"placeholder="Title">
<!-- Hide Iframe window if there is neither html nor js, or if it is not a daemon -->
<%if((passage.lang != 'mixed') && (passage.lang != 'daemon' && passage.lang != 'daemonFrame') && (passage.displayHTML == null || passage.displayHTML == '') && (passage.displayJavascript == null || passage.displayJavascript == '')){%>
<% hide = ' hide'; %>
<%}else{%>
<% hide = ''; %>
<a target="_blank"href="/eval/<%=passage._id%>"><ion-icon title="Full Screen"src="/images/ionicons/expand-outline.svg"></ion-icon></a>
<%}%>
<div id="passage_iframe_<%=passage._id%>"class="passage_iframe<%=hide%>" id="result_div">
<%if((user && passage.personal_cross_origin && user._id == passage.author._id) || (passage.public_daemon == 2)){%>
<!-- Only allow daemon in scope -->
<%if(sub === false || subPassages){%>
<iframe class="iframe" src="/eval/<%=passage._id%>" frameborder="0" sandbox="allow-scripts allow-same-origin"></iframe>
<%}else{%>
<iframe class="iframe" src="/eval/<%=passage._id%>" frameborder="0" sandbox="allow-scripts"></iframe>
<%}%>
<%}else{%>
<iframe class="iframe" src="/eval/<%=passage._id%>" frameborder="0" sandbox="allow-scripts"></iframe>
<%}%>
</div>
</div>
<div class="bottom-bar">
<div class="passage_stars"><%=parseInt(passage.stars)%> Star<%=passage.stars == 1 ? '' : 's'%>  
<% if(user){ %>
<!-- Get min and max from input: Min is 1, Max is number of stars user has -->
<input autocomplete="off" id="star_number_<%=passage._id%>"class="star_number"value="1"min="1"max="<%=user.stars%>"type="number" />
<span id="passage_add_stars_<%=passage._id%>"class="add_stars">Invest</span>
<% } %>
</div>
</div>
</div>
</div>
<%if(subPassages && sub === false){%>
<div style="display: inline;"id="sub_passages">
<%subPassages.forEach(function(sub_passage) { %>
<%- include('passage', {passage: sub_passage, sub: true}) %>
<%}); %>
</div>
<ul class="page-count">
<%if(!passage.public && !passage.forum){%>
<%}else{%>
<%for(var i = 1; i < totalPages + 1; i += 1){%>
<%if(totalPages > 1){%>
<%if(!thread){%>
<a style="color:inherit;text-decoration:none;"href="/passage/<%=passage.title%>/<%=passage._id%>/<%=i%>"><li><%=i%></li></a>
<%}else{%>
<a style="color:inherit;text-decoration:none;"href="#thread/<%=passage.title%>/<%=passage._id%>/<%=i%>"><li><%=i%></li></a>
<%}%>
<%}%>
<%}%>
<%}%>
</ul>
<%}%>
<div class=\"forum_box\">
$res = $forum->sql->query(" SELECT topics.*,
CASE WHEN
sub=0
THEN
(SELECT subcat.name FROM subcat WHERE subcat.ID=topics.parent_ID)
ELSE
(SELECT subforum.name FROM subforum WHERE subforum.ID=topics.parent_ID)
END
AS
cat_name,
CASE WHEN
sub=1
THEN
(SELECT subforum.parent_ID FROM subforum WHERE subforum.ID=topics.parent_ID)
END
AS
cat_ID,
(SELECT subcat.name FROM subcat WHERE subcat.ID=topics.parent_ID)
AS
cat_name2
FROM topics, subcat
WHERE topics.ID =?
AND topics.parent_ID = subcat.ID", $_POST["t"]);
$row = $res->fetchAll();
if (count($row) === 0)
die("could not find the thread"); //or don't have access
//if we are on the first page show init post
echo "<input type='hidden'id='last-page'value='".$forum->numPagesInThread($_POST['t'])."'/><div class=\"thread\">";
if($_POST['pg'] == 1){
echo $forum->postTemplate($row, $row2);
}
$res = $forum->sql->query("SELECT * FROM `posts` WHERE `parent_ID`=? ORDER BY `time_` ASC LIMIT ".($forum->beginAtRow($_POST['pg'])).", ".Forum::LIMIT, $row[0]["ID"]);
$resFetch = $res->fetchAll();
$count = count($resFetch);
$counter = 0;
foreach($resFetch as $row2)
{
//echo $forum->postTemplate($row, $row2);
$id = $row2['ID'];
$poster = $member->getUserData($row2["by_"]);
echo "<br/>";
echo "<div id='thread-".$id."'class=\"thread\">";
echo "<input id='forum-data-post-".$id."'type='hidden'value='".$id."-".$poster['username']."-".System::timeDiff($row2["time_"])."'/>";
echo "<div class=\"thread_title\">";
echo "<span> </span>";
echo "Re: ".$row[0]["title"]." - ".System::timeDiff($row2["time_"]); // topic title
echo "</div>";
echo "<div class=\"post\">";
echo "<table class=\"tbl_post\"><tr><td>";
echo "<div class=\"post_usr\">";
echo "<a href=\"/user/$poster[username]\">$poster[username]</a><br/>"; //username
echo "<span class=\"status\" id=\"".$member->status2name($poster['status'])."\" title=\"".$member->status2name($poster['status'])."\"> </span>"; //online status
echo "<img src=\"/images/user/$poster[image]\" alt=\"$poster[username]\" />"; //picture
echo "<span class=\"usr_rank\">".($poster['special'] !== 'Member' && $poster['special'] !== '' ? $poster['special'] : $ranks[$poster["rank"]])."</span><br><br>"; //rank
echo "<table class=\"usr_info\">";
echo "<tr><td width=10>Posts:</td><td>". $forum->getPostCountByUser($poster["ID"])."</td></tr>"; //post count
echo "<tr><td>Prestige:</td><td>". $poster["prestige"]."</td></tr>"; //ask points
echo "</table>";
echo "</div>";
echo "</td><td>";
echo "<div class=\"post_msg\"><div style='width:100%;'id='epicedit-".$id."'><textarea id='epic-".$id."'class='epic-text'>$row2[msg]</textarea></div></div>";
echo "<div class=\"post_msg_btm\">";
$btm = '';
if($_SESSION['ID'] == $row2['by_'] || Members::getInstance()->isPrivileged($_SESSION['ID'])){
$btm .= "  <span style='cursor:pointer'id='forum-modify-posts-".$id."'>Modify</span>   <a id='forum-remove-posts-".$id."'>Remove</a>";
}
if($_SESSION['ID'] != $row2['by_']){
$btm .= "  <a class='fa fa-plus'></a>  <a class='fa fa-minus'></a>";
}Genera
echo "
<span style='cursor:pointer'id='forum-quote-".$id."'>Quote</span> ".$btm;
echo "</div>";
echo "</td></tr></table>";
echo "</div>";
//last row
if(++$counter == $count) echo "<br><button id='forum-post'>New Post</button> ".$forum->listPageNums($_POST['t'], $_POST['pg'])."<br>";
echo "</div>";
}
echo "</div>";
if (isset($row[0]['cat_ID'])) //if subforum post, so we get right back on track
$script = "<input type=\"hidden\" value=\"".base64_encode($row[0]["cat_name"])."|".$row[0]['cat_ID']."/".$forum->convertName($row[0]["cat_name2"])."&s=".$row[0]["parent_ID"]."\" class=\"hdn_cat\"/>";
else
$script = "<input type=\"hidden\" value=\"".base64_encode($row[0]["cat_name"])."|".$row[0]["parent_ID"]."\" class=\"hdn_cat\"/>";
$script .= "<input type=\"hidden\" value=\"".base64_encode($row[0]["title"])."|".$row[0]["ID"]."\" class=\"hdn_thr\"/>";
echo $script;
//var_dump($row);
}
?>
<!-- DEPRECATED
To be soon removed.
See editor.ejs
-->
<!--
Source variable: passage
-->
<form id="passage_form_<%=passage._id%>"class="passage_form"action="/update_passage/" type="post"enctype="multipart/form-data">
<input value="<%=passage._id%>"name="_id"type="hidden">
<input id="passage_title_<%=passage._id%>"class="passage_title" value="<%=passage.title%>" type="text"name="title"placeholder="Title">
<input id="quill-data-<%=passage._id%>"value="<%=passage.content%>"name="content"type="hidden">
<div class="passage_description" id="passage_content_<%=passage._id%>" cols="30" rows="10" placeholder="Content"></div>
<input id="passage_file_<%=passage._id%>"class="passage_file" name="file" type="file" autocomplete="off" />
<div style="display:none;"id="passage_thumbnail_<%=passage._id%>">
<img id="thumbnail_image_<%=passage._id%>"src="" alt="">
<input id="thumbnail_clip_<%=passage._id%>"type="hidden" name="thumbnail">
</div>
<div id="passage_advanced_<%=passage._id%>"class="passage_advanced">
<textarea style="display:none;"class="passage_html" name="html" id="passage_html_<%=passage._id%>" cols="30" rows="10" placeholder="HTML"><%=passage.html%></textarea>
<textarea style="display:none;"class="passage_css" name="css" id="passage_css_<%=passage._id%>" cols="30" rows="10" placeholder="CSS"><%=passage.css%></textarea>
<textarea style="display:none;"class="passage_js" name="js" id="passage_js_<%=passage._id%>" cols="30" rows="10" placeholder="Javascript"><%=passage.javascript%></textarea>
<code-input lang="HTML"class="code_display display_html" id="display_html_<%=passage._id%>" placeholder="HTML"value="<%=passage.html || 'HTML'%>"></code-input>
<code-input lang="CSS"class="code_display display_css" id="display_css_<%=passage._id%>" placeholder="CSS"value="<%=passage.css || 'CSS'%>"></code-input>
<code-input lang="javascript"class="code_display display_js" id="display_js_<%=passage._id%>" placeholder="Javascript"value="<%=passage.javascript || 'Javascript'%>"></code-input>
</div>
<ul class="passage_tabs">
<li id="passage_executable_<%=passage._id%>"class="passage_tab passage_tab_open_advanced view_code">Advanced</li>
</ul>
<br>
</form>
Passage ID: <%=passage._id%>
<br><br>
Users:
<%if(passage.users){passage.users.forEach(function(user, i) { %>
<%=user.username%>
<%if(i !== 0){%>
<span class="passage_remove_user"data-userid="<%=user._id%>"id="delete_passage_user_<%=passage._id%>">X</span>
<%}%>
,
<%});}%>
<br><br>
Collaborators:
<%if(passage.collaborators && passage.collaborators.length > 0){passage.collaborators.forEach(function(collaber, i) { %>
<%=collaber%>
,
<%});}else{%>
None
<%}%>
<br><br>
Add User (Read/Write Access): <br>
<input autocomplete="off" placeholder="Username..."class="passage_add_user"id="passage_add_user_<%=passage._id%>"type="">
<br>
<br>
Add Collaborator (Split Stars): <br>
<input autocomplete="off" placeholder="Email..."class="passage_add_collaborator"id="passage_add_collaborator_<%=passage._id%>"type="">
<br><br>
Toggle Green/Red for Active/Inactive
<br>
<div data-setting="private"class="passage_setting <%=passage.public == false ? 'green' : 'red';%>"id="passage_setting_make_private_<%=passage._id%>">Make Private (Default) (Only Team members can add passages)</div>
<div data-setting="public"class="passage_setting <%=passage.public == true ? 'green' : 'red';%>"id="passage_setting_make_public_<%=passage._id%>">Make Public (Everyone can add passages, ranked by best)</div>
<div data-setting="personal"class="passage_setting <%=passage.personal == true ? 'green' : 'red';%>"id="passage_setting_make_private_<%=passage._id%>">Make Personal (Only Team members can View)</div>
<div data-setting="forum"class="passage_setting <%=passage.forum == true ? 'green' : 'red';%>"id="passage_setting_make_forum_<%=passage._id%>">Make Forum (Everyone's a Team Member)</div>
<!-- <div data-setting="personal"class="passage_setting <%=passage.personal == false ? 'green' : 'red';%>"id="passage_setting_make_personal_<%=passage._id%>">Make Personal (Only Team members can even see the passage)</div> -->
<div data-setting="cross-origin-allowed"class="passage_setting <%=passage.personal_cross_origin == true ? 'green' : 'red';%>"id="passage_setting_cross_origin_allowed_<%=passage._id%>">Cross Origin Allowed (Dangerous: Personal Advanced)</div>
<div data-setting="request-public-daemon"class="passage_setting <%=passage.public_daemon == 0 ? 'red' : 'yellow';%>"id="passage_setting_public_daemon_requested_<%=passage._id%>">Request Public Daemonization (Locks Passage)</div>
<%if(user && user.admin){%>
<div data-setting="admin-make-public-daemon"class="passage_setting <%=passage.public_daemon == 2 ? 'green' : 'red';%>"id="passage_setting_admin_make_daemon_<%=passage._id%>">Make Public Daemon (Admin Advanced Option)</div>
<div data-setting="admin-make-default-daemon"class="passage_setting <%=passage.default_daemon ? 'green' : 'red';%>"id="passage_setting_admin_make_default_daemon_<%=passage._id%>">Make Default Daemon (Admin Advanced Option)</div>
<%}%>
<div data-setting="distraction-free"class="passage_setting <%=passage.distraction_free == true ? 'green' : 'red';%>"id="passage_setting_distraction_free_<%=passage._id%>">Default Distraction Free Mode</div>
<div data-setting="bubbling"class="passage_setting <%=passage.bubbling == true ? 'green' : 'red';%>"id="passage_setting_bubbling_<%=passage._id%>">Bubble Up Content (Private Passages)</div>
<br>
<div style="border: 1px solid black;padding:10px;">
Choose One.
<br><br>
<div>
Mirror Passage: <input placeholder="Passage ID" autocomplete="off"id="passage_mirror_<%=passage._id%>"value="<%=passage.mirror ? passage.mirror._id : ''%>"type="text" name="mirror">
<br>
<input id="passage_mirrorEntire_<%=passage._id%>"<%=passage.mirrorEntire ? ' checked ' : ''%>type="checkbox" name="mirrorEntire"> Entire
<input id="passage_mirrorContent_<%=passage._id%>"<%=passage.mirrorContent ? ' checked ' : ''%>type="checkbox" name="mirrorContent"> Only Content
</div>
<br>
<div>
Best Of: <input placeholder="Passage ID" autocomplete="off"id="passage_bestOf_<%=passage._id%>"type="text" value="<%=passage.bestOf ? passage.bestOf._id : ''%>"name="bestOf">
<br>
<input id="passage_bestOfEntire_<%=passage._id%>"type="checkbox" <%=passage.bestOfEntire ? ' checked ' : ''%>name="bestOfEntire"> Entire
<input id="passage_bestOfContent_<%=passage._id%>" <%=passage.bestOfContent ? ' checked ' : ''%>type="checkbox" name="bestOfContent"> Only Content
</div>
<br>
<button id="update_mirroring_<%=passage._id%>">Update</button>
</div>
<br><br>
<button id="passage-delete-<%=passage._id%>" style="border: 1px solid red;cursor:pointer;">DELETE PASSAGE</button>
<!-- <hr>
<div id="show-keys">Keys</div>
<br>
<div id="keys">
<div class="key">
<div style="display:inline"class="key_title"><input type="text"placeholder="Key"></div>
<div style="display:inline"class="key_value"><input type="text"placeholder="Value"></div>
</div>
<div class="key">
<div style="display:inline"class="key_title"><input type="text"placeholder="Key"></div>
<div style="display:inline"class="key_value"><input type="text"placeholder="Value"></div>
</div>
<div class="key">
<div style="display:inline"class="key_title"><input type="text"placeholder="Key"></div>
<div style="display:inline"class="key_value"><input type="text"placeholder="Value"></div>
</div>
</div>
<br> -->
<%passages.forEach(function(passage) { %>
<%- include('passage', {passage: passage, sub: true}) %>
<%});%>
<%passages.forEach(function(passage) { %>
<%- include('passage', {passage: passage, sub: true}) %>
<%});%>
$member = Members::getInstance();
$ranks = $member->ranks;
$poster = $member->getUserData($row[0]["by_"]);
$id = $row[0]['ID'];
//only show remove is no replies to topic yet
$remove = ($this->getPostCount($row[0]["ID"]) == 0) ? '   <a id="forum-remove-topics-'.$id.'">Remove</a>' : '';
$btm = '';
if($_SESSION['ID'] == $row[0]['by_'] || Members::getInstance()->isPrivileged($_SESSION['ID'])){
$btm .= "  <span style='cursor:pointer'id='forum-modify-topics-".$id."'>Modify</span>".$remove;
}
if($_SESSION['ID'] != $row[0]['by_']){
$btm .= "  <a class='fa fa-plus'></a>  <a class='fa fa-minus'></a>";
}
return "<br><div class=\"thread_title\">
<input id='forum-data-post-".$row[0]['ID']."'type='hidden'value='$row[ID]-$poster[username]-".System::timeDiff($row[0]["time_"])."'/>
<span> </span>".
$row[0]["title"]." - ".System::timeDiff($row[0]["time_"]). // topic title
"</div>
<div class=\"post\">
<table class=\"tbl_post\"><tr><td>
<div class=\"post_usr\"><a href=\"/user/$poster[username]\">$poster[username]</a><br/>
<span class=\"status\" id=\"".$member->status2name($poster['status'])."\" title=\"".$member->status2name($poster['status'])."\"> </span>
<img src=\"/images/user/$poster[image]\" alt=\"$poster[username]\" />
<span class=\"usr_rank\">".($poster['special'] !== 'Member' && $poster['special'] !== '' ? $poster['special'] : $ranks[$poster["rank"]])."</span><br><br>
<table class=\"usr_info\">
<tr><td width=10>Posts:</td><td>". $this->getPostCountByUser($poster["ID"])."</td></tr>
<tr><td>Prestige:</td><td>". $poster["prestige"]."</td></tr>
</table>
</div>
</td><td><input type='hidden'id='threadID'value='".$id."'/>
<div class=\"post_msg\"><div style='width:100%;height:100%'id='epicedit-".$id."'><textarea id='epic-".$id."'class='epic-text'>".$row[0]['msg']."</textarea></div></div>
<div class=\"post_msg_btm\">
<span style='cursor:pointer'id='forum-quote-".$id."'>Quote</span> ".$btm.
</div>
</td></tr></table>
</div>
</div>
<div id="ppe">
<canvas id="ppe_canvas"></canvas>
<canvas id="ppe_cursor"></canvas>
<div id="ppe_search_modal" class="modal">
</div>
</div>
<div class="ppe_canvas_container">
<div>
<span class="ppe_queue_link" data-href="/passage/<%=thumbnail.title%>/<%=thumbnail._id%>">Details</span>
</div>
<h3 ><%=thumbnail.title%></h3>
<img src="/uploads/<%=thumbnail.filename[0]%>"id="ppe_canvas_<%=thumbnail._id%>"class="ppe_queue_canvas">
</div>
<%thumbnails.forEach(function(thumbnail) { %>
<%- include('ppe_thumbnail', {thumbnail: thumbnail}) %>
<%});%>
<%- include('html_head') %>
<link rel="stylesheet" type="text/css" href="/css/new.css">
<link rel="stylesheet" type="text/css" href="/css/mobile.css">
</head>
<%- include('header') %>
<%- include('header2', {
page: 'profile'
}) %>
<%-include('menu')%>
<%-include('sidebar')%>
<%- include('member_box') %>
<br><br><br><br>
<input id="chief_passage_id"type="hidden" value="root"name="">
<input id="is_distraction_free"type="hidden" value="false"name="">
<div id="profile_modal" class="modal">
<%- include('settings_form', {profile: profile}) %>
</div>
<input type="hidden" value="<%=profile._id%>", id="is_profile"/>
<div id="profile_header">
<div>
<%if(profile.thumbnail != '' && profile.thumbnail != null){%>
<div style="width:140px;height:140px;background:url('/uploads/<%=profile.thumbnail%>');background-size:cover;background-position:center center;border-radius:5px;margin:auto;"id="profile_settings_image" src="/uploads/<%=profile.thumbnail%>"></div>
<%}else{%>
<ion-icon style="font-size:5em;"id="profile_page_image"src="/images/ionicons/person-circle-outline.svg"></ion-icon>
<%}%>
</div>
<%if(profile.admin === true){%>
<h1 style="color:red;">ADMIN</h1>
<%}else{%>
<%}%>
<%if(user && user._id == profile._id){%>
<a class="basic_link" href="#profile_modal" rel="modal:open"><ion-icon style=""id="user_settings_icon"title="Settings"src="/images/ionicons/settings-sharp.svg"></ion-icon></a>
<%}%>
<span id="parent_chapter_title"><%=profile.name%></span>
<div style="font-size:1em;color:grey;"><%=profile.username%></div>
<div id="profile_stars">
<p><%=parseInt(profile.stars)%> Star<%-parseInt(profile.stars) == 1 ? '' : 's'%>. <%=profile.starsGiven%> Star<%-profile.starsGiven == 1 ? '' : 's'%> Invested ($<%=usd%>)</p>
</div>
</div>
<%if(user && profile._id == user._id){%>
<div style="cursor:pointer;text-align: center;margin:auto;padding:10px;margin-bottom:15px;color:grey;"id="view-personal"><a href="/personal/<%=user._id%>"class="basic_link">View Personal Passages</a></div>
<%}%>
<input type="hidden" id="search">
<input id="search_profile"placeholder="Search Profile..." type="" name="" autocomplete="off">
<%if(user && profile._id == user._id){%>
<button id="add_passage_button">+</button>
<input id="clean_editor"type="hidden" name=""value='<%- include("clean_editor", {passage:passage, page: 'stream'})%>'/>
<%}%>
<br>
<div id="passage_wrapper">
<!-- Show passage list or search list -->
<%if(passages){%>
<%- include('passages') %>
<%}else if (passage){%>
<!-- Just show one passage -->
<%- include('passage', {passage: passage, sub: sub}) %>
<%} %>
</div>
<div class="passage"id="view_more">View More</div>
<div id="passage_form_wrapper"></div>
<script src="/js/profile.js"></script>
<div style="display:none;"id="small-loading">
<div style="text-align: center;background:transparent;padding:20px;width:90%;margin:auto;">
<div class="circle"></div>
<div class="circle1"></div>
<div style=" color:rgba(255,255,255,0.9);
text-shadow:0 0 15px #fff; margin-top:-28px; margin-left:10px; font-weight:bolder">Loading...</div>
</div>
</div>
<%- include('footer') %>
<!-- <span class="passage_user"> -->
<a class="passage_profile_link"href="/profile/<%=profile.username%>/<%=profile._id%>"><%=profile.name%></a><!-- </span> -->
<%- include('html_head') %>
<link rel="stylesheet" type="text/css" href="/css/new.css">
<link rel="stylesheet" type="text/css" href="/css/mobile.css">
</head>
<%- include('header') %>
<%- include('header2', {
page: 'projects'
}) %>
<%-include('menu')%>
<%-include('sidebar')%>
<%if(!ISMOBILE){%>
<%- include('member_box') %>
<%}%>
<input id="is_distraction_free"type="hidden" value="<%=passage.distraction_free || false%>"name="">
<input type="hidden" value="false", id="is_profile"/>
<input type="hidden" id="selection">
<div id="page_title_container">
<%if(passage.parent != null){%>
<div data-url="/passage/<%=encodeURIComponent(passage.parent.title)%>/<%=passage.parent._id%>"id="parent_title"><%=passage.parent.title%></div>
<%}%>
<%if(passageTitle){%>
<div id="page_title"><a style="text-decoration: none;color:inherit;"href="/passage/<%=passage.title%>/<%=passage._id%>"><%= decodeURIComponent(passageTitle)%></a></div>
<%}%>
</div>
<%if(passages){%>
<input id="search"placeholder="Search Solutions..." type="" name="" autocomplete="off">
<%}else if (passage){%>
<input id="search"placeholder="Search Solutions..." type="hidden" name="" autocomplete="off">
<input id="search_passage"placeholder="Search <%=passage.title%>..." type="" name="" autocomplete="off">
<%} %>
<%if((user && passage.id == 'root') || (user && (passage.public || passageUsers.includes(user._id.toString())))){%>
<%if(passage.id == 'root' && passage.public_daemon != 2 && passage.default_daemon != true){%>
<button title="Add Passage"id="add_passage_button">+</button>
<input id="clean_editor"type="hidden" name=""value='<%- include("clean_editor", {passage:passage, page: 'stream'})%>'/>
<%}%>
<%}%>
<br id="top_spacer">
<div id="passage_wrapper">
<!-- Show passage list or search list -->
<%if(passages){%>
<%- include('passages') %>
<%}else if (passage){%>
<!-- Just show one passage -->
<%- include('passage', {passage: passage, sub: sub, subPassages: subPassages}) %>
<%} %>
</div>
<div id="passage_form_wrapper"></div>
<%if((user && passage.id == 'root') || (user && (passage.author._id == user._id || passage.public || passageUsers.includes(user._id.toString())))){%>
<%if(passage.id != 'root' && passage.public_daemon != 2 && passage.default_daemon != true){%>
<button title="Add Passage"id="add_passage_button">+</button>
<%}%>
<%}%>
<br>
</div>
<%if(passages){%>
<div class="passage view-more"id="view_more">View More</div>
<%}else if (passage && passage.public == true){%>
<div class="passage view-more"id="view_more">View More</div>
<%} %>
<%- include('footer') %>
<%- include('html_head') %>
<link rel="stylesheet" type="text/css" href="/css/new.css">
<link rel="stylesheet" type="text/css" href="/css/mobile.css">
</head>
<%- include('header') %>
<%- include('header2', {
page: 'loginform'
}) %>
<%-include('menu')%>
<%-include('sidebar')%>
<br><br><br><br><br><br>
<input id="chief_passage_id"type="hidden" value="root"name="">
<h1 style="text-align: center;margin-bottom: 10px;">Recover Password</h1>
<form id="login_form" action="/recover" method="POST">
<div>
<label>Email:</label>
<input id="login_username"class=""type="email" name="email"autocomplete="off" required/>
</div>
<div>
<input class="log-btn"id="login_button"type="submit" value="Send Recovery Link"autocomplete="off"/>
</div>
</form>
<script src="/js/login_register_form.js"></script>
<br><br><br><br>
<%- include('footer') %>
<%- include('html_head') %>
</head>
<%- include('header') %>
<br><br><br><br><br><br>
<input id="chief_passage_id"type="hidden" value="root"name="">
<h1 style="text-align: center;margin-bottom: 10px;">Recover Password</h1>
<%if(token != null){%>
<form id="login_form" action="/recover_password" method="POST">
<div>
<label>New Password:</label>
<input id="login_username"class=""type="password" name="newPassword"autocomplete="off" required/>
</div>
<div>
<label>Confirm New Password:</label>
<input id="login_username"class=""type="password" name="confirm"autocomplete="off" required/>
</div>
<div>
<input value="<%=_id%>"id="login_username"class=""type="hidden" name="_id"autocomplete="off" required/>
<input id="login_button"type="submit" value="Login"autocomplete="off"/>
</div>
</form>
<%}else{%>
<h1 style="text-align: center;color:green;margin-top:50px;">Follow the link sent to your email.</h1>
<%}%>
<script src="/js/login_register_form.js"></script>
<br><br><br><br>
<%- include('footer') %>
<%- include('html_head') %>
</head>
<%- include('header') %>
<br><br><br><br><br><br>
<input id="chief_passage_id"type="hidden" value="root"name="">
<h1 style="text-align: center;margin-bottom: 10px;">Login</h1>
<form id="login_form" action="/login/" method="POST">
<div>
<label>Username or Email:</label>
<input id="login_username"class=""type="text" name="username"autocomplete="off"/>
</div>
<div>
<label>Password:</label>
<input id="login_password"class=""type="password" name="password"autocomplete="off"/>
</div>
<div>
<input id="login_button"type="submit" value="Login"autocomplete="off"/>
</div>
<a href="/recover">Recover Password</a>
</form>
<h1 style="text-align: center;margin-bottom: 10px;">Register</h1>
<form id="register_form" action="/register/" method="POST">
Username: <span id="register_username_load"></span>
<br><br>
<div>
<label>Name:</label>
<input placeholder="" id="register_username" type="text" name="username"autocomplete="off" required/>
</div>
<div>
<label>Email:</label>
<input placeholder="Recommended" id="register_email" type="text" name="email"autocomplete="off"/>
</div>
<div>
<label>Password:</label>
<input id="register_password" type="password" name="password"autocomplete="off" required/>
</div>
<div>
<label>Confirm Password:</label>
<input id="register_confirm" type="password" name="passwordConf"autocomplete="off" required/>
</div>
<div>
<label>I accept the <a target="_blank"href="/terms">terms</a></label>
<input type="checkbox" required>
</div>
<div>
<input id="register_button"type="submit" value="Register"/>
</div>
</form>
<script src="/js/login_register_form.js"></script>
<br><br><br><br>
<%- include('footer') %>
<%- include('html_head') %>
<link rel="stylesheet" type="text/css" href="/extra/slider/slide.css" />
<!-- <link rel="stylesheet" type="text/css" href="/infinity/css/start.css" /> -->
<script type="text/javascript" src="/extra/slider/jquery.nivo.slider.js"></script>
<link rel="stylesheet" type="text/css" href="/css/new.css">
</head>
<body>
<%- include('header') %>
<%- include('header2') %>
<%- include('member_box') %>
<div id="middle">
<div id="wrapper" >
<div class="slider-wrapper theme-default">
<div id="slider" class="nivoSlider">
<img src="/extra/slider/26.jpg" title="A place where your ideas become reality."/>
<!-- <img src="/slider/3.jpg" title="A place where you can create."/> -->
<img src="/extra/slider/8.jpg" title="A place where you can learn."/>
<img src="/extra/slider/20.jpg" title="A place where you can collaborate with people from all over the world."/>
<!-- <img src="/slide/25.jpg" title="A place where you can be different."/> -->
</div>
</div>
</div>
</div>
<div id="mobile-middle">
<img style="width:100%;"src="/extra/slider/26.jpg" title="A place where your ideas become reality."/>
</div>
<div id="mid_bar" class="bar"style="padding:0px;">
<ion-icon style="font-size:4em;color:black"></ion-icon>
<a id="tour-link"style="color:#000"class="fa fa-play-circle fa-4x"></a>
</div>
<div id="main2">
<div id="main-body">
<span class="lead i">Be productive, creative, and social at the same time.</span>
<br><br><br><br>
<a href="#idea"class="feature">
<i class="fa fa-lightbulb-o fa-4x"></i><br>
Idea
</a>
  
<i class="feature">
<i class="fa fa-plus fa-3x math-icon"></i><br>
</i>
  
<a href="#information"class="feature">
<i class="fa fa-globe fa-4x"></i><br>
Information
</a>
  
<i class="feature">
<i class="fa fa-plus fa-3x math-icon"></i><br>
</i>
  
<a href="#collaboration"class="feature">
<i class="fa fa-users fa-4x"></i><br>
Collaboration
</a>
  
<i class="feature">
<i class="fa fa-plus fa-3x math-icon"></i><br>
</i>
  
<a href="#freedom"class="feature">
<i class="fa fa-flag fa-4x"></i><br>
Freedom
</a>  
<span class="fa-4x math-icon">=</span>  
<a href="#amazing"class="feature">
<i class="fa fa-check fa-4x"></i><br>
Something Amazing
</a>
<br>
<br>
<br>
<br>
<div id="idea"class="panel panel-default">
<div class="panel-heading">
<span class="panel-title lead"><i class="fa fa-lightbulb-o fa-lg"></i> Come up with an idea.</span>
</div>
<div class="panel-body lead">
Infinity makes it easy to come up with ideas. <br> Consult the community for advice or check out
the Projects page for inspiration. <br> And it doesn't just have to be your own idea that
captures your imagination: <br> The Forums are teeming with brilliant discussions
and several projects are awaiting more contributors.
<br><br>
<!-- <button class="btn">Launch Your Idea</button> -->
</div>
</div>
<br>
<div id="information"class="panel panel-default">
<div class="panel-heading">
<span class="panel-title lead"><i class="fa fa-globe fa-lg"></i> Learn more about what you want to do.</span>
</div>
<div class="panel-body lead">
One of the most difficult things about starting a project is that you never seem to know enough. <br>
Time to forget your troubles: The Infinity-Forum community boasts a wide variety of people in every field. <br>
Use our social tools to get into contact with some potential partners and mentors. <br>
And Infinity isn't all just business, either! <br>
Take advantage of community activities to make real friends who share your interests.
<br><br>
<!-- <button class="btn btn-success">Learn Something New</button> -->
</div>
</div>
<br>
<div id="collaboration"class="panel panel-default">
<div class="panel-heading">
<span class="panel-title lead"><i class="fa fa-users fa-lg"></i> Find people to help you do it.</span>
</div>
<div class="panel-body lead">
Now that you have an idea and the knowledge to pursue it, your going to need some help. <br>
Time to start networking and getting your idea out there. <br>
Start a project and invite people, public or private. <br>
Use the Infinity Workspace to keep track of what needs to get done. <br>
And pay attention to rankings and statistics to keep an eye out for interesting people.
<br><br>
<!-- <button class="btn btn-primary">Find Awesome People</button> -->
</div>
</div>
<br>
<div id="freedom"class="panel panel-default">
<div class="panel-heading">
<span class="panel-title lead"><i class="fa fa-flag fa-lg"></i> Take advantage of the freedom Infinity-Forum offers.</span>
</div>
<div class="panel-body lead">
Freedom of knowledge and the power to use it is the defining concept here. <br>
We actually make it a priority to work with our fellow community members. <br>
We provide free plans for groups that require it. <br>
We support open source. <br>
Infinity-Forum was designed to be a pathway to success, for anyone. <br>
The last thing we will do is get in the way.
<br><br>
<!-- <button class="btn btn-danger">Contribute</button> -->
</div>
</div>
<br>
<i id="amazing"class="fa fa-check fa-4x"></i>
<p class="lead">
<h2>
In just one place, make your dreams come to fruition. <br>
What will you create?
<br><br>
<!-- <button class="btn btn-warning">Get Started</button> -->
</h2>
<br>
<br>
<br>
</p>
</div>
</div>
</div>
<script type="text/javascript">
var specials = ['#idea', '#information', '#collaboration', '#freedom', '#amazing'];
$('a[href*=#]').click(function() {
alert(1);
if($.inArray($(this).attr('href'), specials) !== -1){
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
if (target.length) {
$('html,body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
}
});
</script>
</body>
<div>
<%if(profile.thumbnail != '' && profile.thumbnail != null){%>
<img style="width:75px;"id="profile_settings_image" src="/uploads/<%=profile.thumbnail%>">
<%}else{%>
<ion-icon id="profile_page_image"src="/images/ionicons/person-circle-outline.svg"></ion-icon>
<%}%>
</div>
<form id="update_profile_picture"action="/change_profile_picture/" method="POST" enctype="multipart/form-data">
<input type="file" accept="image/*"id="upload_profile_photo"name="photo"autocomplete="off"/>
<br><br>
<button id="change-photo">Change</button>
</form>
<p><%=profile.username%></p>
<a target="_blank"href="/stripeAuthorize">Get Paid (<%=profile.stripeOnboardingComplete == true ? "Active" : "Inactive"%>)</a>
<br><br>
<form id="settings_form" action="/update_settings/" method="POST">
<input name="oldUsername"id="oldUsername"type="hidden"value="<%=profile.username%>" />
<input name="oldName"id="oldName"type="hidden"value="<%=profile.name%>" />
<input name="newUsername"id="newUsername"type="hidden"value="<%=profile.username%>" />
<div>
Username: <span id="register_username_load"><%=profile.username%></span>
<br>
<label>Name:</label>
<input id="register_username" type="text" value="<%=profile.name%>"name="name"autocomplete="off" required/>
</div>
<div>
<label>Email:</label>
<input placeholder="Recommended" id="register_email" value="<%=profile.email%>"type="text" name="email"autocomplete="off"/>
</div>
<div>
<label>New Password:</label>
<input id="register_password" value=""type="password" name="password"autocomplete="off"/>
</div>
<div>
<label>Confirm New Password:</label>
<input id="register_confirm" type="password" name="passwordConf"autocomplete="off"/>
</div>
<div>
<label>Old Password:</label>
<input id="register_confirm" type="password" name="oldPassword"autocomplete="off"/>
</div>
<!-- <div>
<label>Developer Mode (Advanced):</label>
<input id="register_confirm" type="checkbox" name="passwordConf"autocomplete="off"/>
</div> -->
<div>
<input id="register_button"type="submit" value="Update"/>
</div>
</form>
<div id="side_panel">
<div id="side_panel_inner">
<div id="side_panel_close">
<ion-icon src="/images/ionicons/close-circle-sharp.svg"></ion-icon>
</div>
<div id="side_panel_body">
<div class="header">
<select id="right_side_select" autocomplete="off">
<option value="help">Help</option>
<option value="bookmarks">Bookmarks</option>
<option value="daemons">Daemons</option>
<option value="passages">Graphics</option>
<option value="brief">Brief</option>
</select>
</div>
<!-- For Pagination -->
<input id="search_val"type="hidden"autocomplete="false">
<!-- Shows only one child at a time -->
<div id="side_panel_switcher">
<!-- For Chapters -->
<div id="daemons"></div>
<!-- Brief -->
<div id="brief">
<!-- <div id="brief_blocker"></div>
<div id="right_passages"></div> -->
<%if(typeof passage != 'undefined' && passage.passages){%>
<div id="brief-passages">
<%var title;%>
<%for(const p of passage.passages){%>
<%title = p.title == '' ? 'Untitled' : p.title;%>
<h2 class="brief-passage"><a href="/passage/<%=encodeURIComponent(title)%>/<%=p._id%>"><%=title%></a></h2>
<%}%>
</div>
<%}%>
<!-- Button to update order if private passage and author -->
<!-- <button>Update Order</button><br><br> -->
<!-- just show passage titles -->
</div>
<!-- Passages -->
<div id="search_passages">
<div>
<input class="control_input"id="ppe_search"placeholder="Search Passages" type="" name="" autocomplete="off">
<div id="ppe_queue">
<!-- <input placeholder="Search..."id="ppe_search"class="control_input"type="text" name=""> -->
<div class="ppe_canvas_container ppe_queue_selected">
<h3>Mutation</h3>
<canvas id="ppe_mutation"class="ppe_queue_canvas" width="100" height="100"></canvas>
</div>
<ion-icon title="View More"style="font-size:2em;display:inline-block;padding-bottom:10px;cursor:pointer;"id="ppe_queue_view_more"class=""title="View More"src="/images/ionicons/add-circle-outline.svg"></ion-icon>
</div>
</div>
<div id="cats"></div>
</div>
<!-- Bookmarks -->
<div id="bookmarks">
<!-- <input value="{}"id="queue_passages"type="hidden" name="" autocomplete="off"> -->
<!-- If logged in display from database -->
<%if(user != null){%>
Logged In
<!-- Otherwise use localStorage -->
<%}else{%>
Logged Out
<%}%>
</div>
<!-- Console -->
<div id="console_div">
<textarea id="console" class="control_textarea" autocomplete="off"></textarea>
<button class="control_button">Add to Queue</button>
</div>
<!-- Edit -->
<div id="edit_div">
</div>
<!-- Leaderboard -->
<div id="leaderboard_div">
Leaderboard coming soon
</div>
<!-- Help -->
<div id="help_div">
<h1>Engineering Solutions for the Church</h1>
<p>
Christian Engineering Solutions (CES) is a Not for Profit Organization specializing in collaborative solutions development for the Church. In the Spirit of Jesus Christ, we are to spread the gospel throughout the Earth, taking care to be good examples of Christ Jesus by serving others. CES is designed to help the Church meet these goals in the most rigorous manner possible.
</p>
<h1>Our Technology</h1>
<p>
Our Technology is scripture based in its goals and foundations. Open-Source and Free, one may use our services to both learn and solve problems with the goals of helping others and growing closer to God.
</p>
<h1>Features</h1>
<h3>Merit-based Reputation and Rewards</h3>
<h3>Streamlined Search and Citations</h3>
<h3>Modular Applications</h3>
<h3>Peer-to-Peer and Encryption Technologies <span style="font-size:1em;font-weight:normal;">(Under Development)</span></h3>
<h1>External Repository</h1>
<h3><a target="_blank"href="https://github.com/ChristianEngineeringSolutions/ChristianEngineeringSolutions">https://github.com/ChristianEngineeringSolutions/ChristianEngineeringSolutions</a></h3>
<hr>
<h5>Setup Account with email to earn rewards from reputation and donations.</h5>
</div>
</div>
</div>
</div>
</div>
<%- include('html_head') %>
<link rel="stylesheet" type="text/css" href="/css/new.css">
<link rel="stylesheet" type="text/css" href="/css/mobile.css">
</head>
<%- include('header') %>
<%- include('header2', {
page: page
}) %>
<%-include('menu')%>
<%-include('sidebar')%>
<%if(!ISMOBILE){%>
<%- include('member_box') %>
<%}%>
<input id="clean_editor"type="hidden" name=""value='<%- include("clean_editor", {passage:passage, page: 'stream'})%>'/>
<input id="chief_passage_id"type="hidden" value="<%=passage.id || 'root'%>"name="chief">
<input id="is_distraction_free"type="hidden" value="<%=passage.distraction_free || false%>"name="">
<input type="hidden" value="false", id="is_profile"/>
<input type="hidden" id="selection">
<div id="page_title_container">
<%if(passage.parent != null){%>
<div data-url="/passage/<%=encodeURIComponent(passage.parent.title) == '' ? 'Untitled' : encodeURIComponent(passage.parent.title)%>/<%=passage.parent._id%>"id="parent_title"><%=location.join('/')%></div>
<%}else if (!passageTitle){%>
<%}else{%>
<div data-url="/stream"id="parent_title">Infinity</div>
<%}%>
<%if(typeof passageTitle != 'undefined' && passageTitle != false){%>
<div id="page_title"><a style="text-decoration: none;color:inherit;"href="/passage/<%=passage.title == '' ? 'Untitled' : passage.title%>/<%=passage._id%>"><%= decodeURIComponent(passageTitle) == '' ? 'Untitled' : decodeURIComponent(passageTitle)%></a><ion-icon id="show_brief"title="Show Brief"src="/images/ionicons/menu-sharp.svg"></ion-icon></span></div></div>
<%}%>
</div>
<%if(passages){%>
<input id="search"placeholder="Search Solutions..." type="" name="" autocomplete="off">
<%}else if (passage){%>
<input id="search"placeholder="Search Solutions..." type="hidden" name="" autocomplete="off">
<input id="search_passage"placeholder="Search <%=passage.title%>..." type="" name="" autocomplete="off">
<%} %>
<%if((user && passage.id == 'root') || (user && (passage.public || passageUsers.includes(user._id.toString())))){%>
<%if(passage.id == 'root' && passage.public_daemon != 2 && passage.default_daemon != true){%>
<button title="Add Passage"id="add_passage_button">+</button>
<input id="clean_editor"type="hidden" name=""value='<%- include("clean_editor", {passage:passage, page: 'stream'})%>'/>
<%}%>
<%}%>
<br id="top_spacer">
<div id="passage_wrapper">
<!-- Show passage list or search list -->
<%if(passages){%>
<%- include('passages') %>
<%}else if (passage){%>
<!-- Just show one passage -->
<%- include('passage', {passage: passage, sub: sub, subPassages: subPassages}) %>
<%} %>
</div>
<div id="passage_form_wrapper"></div>
<%if((user && passage.id == 'root') || (user && (passage.author._id == user._id || passage.public || passageUsers.includes(user._id.toString())))){%>
<%if(passage.id != 'root' && passage.public_daemon != 2 && passage.default_daemon != true){%>
<button title="Add Passage"id="add_passage_button">+</button>
<%}%>
<%}%>
<br>
</div>
<%if(passages){%>
<div class="passage view-more"id="view_more">View More</div>
<%}else if (passage && passage.public == true){%>
<div class="passage view-more"id="view_more">View More</div>
<%} %>
<input id="which-page"type="hidden" value="<%=whichPage%>">
<%if(typeof subforums != 'undefined'){%>
<input id="yes-subforums"value="true"type="hidden" name="">
<%}else{%>
<input id="yes-subforums"value="false"type="hidden" name="">
<%}%>
<div style="display:none;"id="small-loading">
<div style="text-align: center;background:transparent;padding:20px;width:90%;margin:auto;">
<div class="circle"></div>
<div class="circle1"></div>
<div style=" color:rgba(255,255,255,0.9);
text-shadow:0 0 15px #fff; margin-top:-28px; margin-left:10px; font-weight:bolder">Loading...</div>
</div>
</div>
<%- include('footer') %>
<p>
Christian Engineering Solutions (CES) is a Not For Profit Organization, formally a sole proprietorship,
acting as a not-for-profit while seeking tax exempt status in California. Employees are not compensated via operating costs,
but like all users may be rewarded through the built-in reputation system. CES distributes all of its profits to its users based on reputation to stimulate productivity on the website.
</p>
<p>These terms are subject to change.</p>
<p>
CES utilizes an open-source algorithm in order to manage its budget and distribute rewards to users based on merit.
These algorithms are subject to change; CES is not responsible for compensating users for any donations/investments or activity on the website christianengineeringsolutions.com.
CES is also not responsible for any lost work. CES reserves the right to remove or censor any content for any reason. Pornographic material is not allowed on the site.
</p>
<p>
CES modules maintain a source list and reward system that allows users to utilize the works of others in their own contributions while keeping track of merit.
By using CES, you are authorizing CES and other users to utilize your work on the system so long as they use the built in channels for maintaining credit. If they use your work outside of the system, they must follow any additional license stated for the work, and should cite any utilizations. The default sub-license for all submissions to CES is the <a target="_blank"href="https://opensource.org/license/mit/">MIT License</a>.
</p>
<p>
Passages which users submit to the website christianengineeringsolutions.com are not reflective of our views or beliefs.
Our goal is to find a proper place to categorize any information which is submitted such that it is maximally beneficial to our company goals
of helping others. We encourage users to make this process easier by maintaining a focus on productivity, service, and Jesus Christ.
</p>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test File</title>
<script src="/jquery.min.js"></script>
<script>
$.ajax({
type: 'post',
url: '/test/',
data: {
hello: 'hi'
},
success: function(data){
alert(data);
}
});
</script>
</head>
<body>
<canvas></canvas>
</body>
</html>
<input id="chief_passage_id"type="hidden" value="<%=topicID || 'root'%>"name="chief">
<input id="which-page"type="hidden" value="thread">
<div id="thread-passages"class="forum_box">
<%-include('passage')%>
</div>
<input type="hidden" value="<%=btoa(passage.parent.title)%>|<%=passage.parent._id%>" class="hdn_cat"/>
<input type="hidden" value="<%=btoa(passage.title)%>|<%=passage._id%>" class="hdn_thr"/>
<!-- Built-In Editor On the Way -->