lazyscholars
Science Score: 31.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic links in README
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Unable to calculate vocabulary similarity
Last synced: 10 months ago
·
JSON representation
·
Repository
Basic Info
- Host: GitHub
- Owner: LazyScholars
- Language: HTML
- Default Branch: main
- Size: 11.7 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Created over 1 year ago
· Last pushed over 1 year ago
Metadata Files
Citation
Owner
- Login: LazyScholars
- Kind: user
- Repositories: 1
- Profile: https://github.com/LazyScholars
Citation (citation_generator.html)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Citation Generator | LazyScholars</title>
<!-- Google Fonts & Font Awesome -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" />
<!-- jQuery (for AJAX) and html2pdf -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.2/html2pdf.bundle.min.js"></script>
<style>
/* Reset & Global Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background: #f0f2f5;
color: #333;
}
a {
text-decoration: none;
color: inherit;
}
/* Sidebar */
.sidebar {
width: 220px;
background: #2d3436;
color: #fff;
position: fixed;
height: 100%;
overflow-y: auto;
}
.sidebar .logo {
padding: 20px;
text-align: center;
background: #23272a;
}
.sidebar .logo h2 {
margin: 0;
font-size: 24px;
font-weight: 600;
}
.sidebar .logo span {
color: #00cec9;
}
.sidebar .menu a {
display: block;
padding: 15px 20px;
color: #b2bec3;
border-bottom: 1px solid transparent;
transition: background 0.3s ease;
}
.sidebar .menu a:hover,
.sidebar .menu a.active {
background: #00cec9;
color: #fff;
}
.sidebar .menu a i {
margin-right: 10px;
}
/* Main Content */
.main-content {
margin-left: 240px;
padding: 30px;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
}
.main-header {
text-align: center;
margin-bottom: 30px;
}
/* Form Container */
.form-container {
background: #ffffff;
padding: 30px;
border-radius: 12px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
max-width: 700px;
width: 100%;
margin-bottom: 40px;
}
.form-group {
margin-bottom: 20px;
}
.form-group label {
font-size: 1.1rem;
font-weight: 500;
color: #333;
margin-bottom: 8px;
display: block;
}
.form-group input,
.form-group select {
width: 100%;
padding: 12px;
border: 1px solid #d1d5db;
border-radius: 8px;
font-size: 1rem;
color: #333;
transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group select:focus {
border-color: #00cec9;
outline: none;
}
.button-container {
text-align: center;
margin-top: 20px;
}
.button-container button {
background: linear-gradient(89deg, #00cec9, #008683);
color: #fff;
padding: 12px 20px;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: background 0.3s, transform 0.3s;
}
.button-container button:hover {
background: #0097a7;
transform: scale(1.05);
}
/* Bibliography Container */
.bibliography-container {
background: #ffffff;
padding: 30px;
border-radius: 12px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
max-width: 700px;
width: 100%;
text-align: center;
margin-bottom: 40px;
max-height: 400px; /* Adjust as needed */
overflow-y: auto;
}
.bibliography-container h2 {
margin-bottom: 20px;
}
.citation-box {
text-align: left;
margin-bottom: 20px;
}
.citation-item {
padding: 10px;
border-bottom: 1px solid #e0e0e0;
display: flex;
justify-content: space-between;
align-items: center;
}
.citation-text {
word-wrap: break-word;
overflow-wrap: break-word;
}
/* Button Styles */
.btn {
border: none;
border-radius: 8px;
padding: 8px 12px;
font-size: 0.9rem;
font-weight: 600;
cursor: pointer;
transition: background 0.3s, transform 0.3s;
}
.copy-btn {
background: linear-gradient(45deg, #00cec9, #008683);
color: #fff;
margin: 5px;
}
.copy-btn:hover {
background: #0097a7;
transform: scale(1.05);
}
.delete-btn {
background: linear-gradient(45deg, #ff7675, #e17055);
color: #fff;
}
.delete-btn:hover {
background: #e17055;
transform: scale(1.05);
}
</style>
</head>
<body>
<!-- Sidebar -->
<aside class="sidebar">
<div class="logo">
<h2>Lazy<span>Scholars</span></h2>
</div>
<nav class="menu">
<a href="/dashboard"><i class="fas fa-home"></i> Dashboard</a>
<a href="/library"><i class="fas fa-book"></i> Library</a>
<a href="/summarizer"><i class="fas fa-align-left"></i> Summarizer</a>
<a href="/trend-analyzer"><i class="fas fa-chart-line"></i> Analyzer</a>
<a href="/article-finder"><i class="fas fa-search"></i> Article Finder</a>
<a href="/mindmap"><i class="fas fa-sitemap"></i> MindMap</a>
<a href="/citation-generator" class="active"><i class="fas fa-book"></i> Citation Generator</a>
<a href="/research-tutorials"><i class="fas fa-graduation-cap"></i> Research Tutorials</a>
<a href="/todo-list"><i class="fas fa-list"></i> To-Do List</a>
</nav>
</aside>
<div class="main-content">
<div class="main-header">
<h1>Citation Generator</h1>
</div>
<div class="form-container">
<form method="POST" action="{{ url_for('citation_generator') }}" autocomplete="off">
<div class="form-group">
<label for="format">Select Format</label>
<select id="format" name="format" required>
<option value="APA">APA</option>
<option value="MLA">MLA</option>
<option value="Chicago">Chicago</option>
</select>
</div>
<div class="form-group">
<label for="author">Author(s)</label>
<div id="authorContainer">
<input type="text" class="authorInput" name="author[]" placeholder="Enter author's name" required />
</div>
<!-- Button to add another author -->
<button type="button" id="addAuthorBtn" class="btn" style="margin-top: 10px;">Add Author</button>
</div>
<div class="form-group">
<label for="title">Title</label>
<input type="text" id="title" name="title" placeholder="Enter title" required />
</div>
<div class="form-group">
<label for="publisher">Publisher</label>
<input type="text" id="publisher" name="publisher" placeholder="Enter publisher" />
</div>
<div class="form-group">
<label for="year">Year</label>
<input type="text" id="year" name="year" placeholder="Enter year" />
</div>
<div class="form-group">
<label for="volume">Volume (optional)</label>
<input type="text" id="volume" name="volume" placeholder="Enter volume number" />
</div>
<div class="form-group">
<label for="pages">Pages (optional)</label>
<input type="text" id="pages" name="pages" placeholder="Enter page range" />
</div>
<div class="form-group">
<label for="url">URL (optional)</label>
<input type="text" id="url" name="url" placeholder="Enter URL" />
</div>
<div class="button-container">
<button type="submit">Add Citation</button>
</div>
</form>
</div>
<div class="bibliography-container">
<h2>Bibliography</h2>
{% if session['citations'] %}
<div id="citationBox" class="citation-box">
{% for citation in session['citations']|sort(attribute='citation') %}
<div class="citation-item">
<div class="citation-text">
{{ citation['citation'] | safe }}
</div>
<!-- Delete form with hidden input for index -->
<form method="POST" action="{{ url_for('remove_citation') }}">
<input type="hidden" name="index" value="{{ loop.index0 }}">
<button type="submit" class="btn delete-btn">Delete</button>
</form>
</div>
{% endfor %}
</div>
<button class="btn copy-btn" onclick="copyCitations()">Copy All Citations</button>
{% else %}
<p>No citations added yet.</p>
{% endif %}
</div>
</div>
<script>
function copyCitations() {
// Select only the elements that contain the citation text
const citationElements = document.querySelectorAll('.citation-text');
const citationText = Array.from(citationElements)
.map(el => el.innerText.trim())
.join('\n\n');
navigator.clipboard.writeText(citationText)
.then(() => {
alert("Citations copied to clipboard!");
})
.catch(err => {
alert("Failed to copy citations. Please try again.");
});
}
$(document).ready(function(){
$('#addAuthorBtn').click(function(){
// Append a new input field for another author
$('#authorContainer').append(
'<input type="text" class="authorInput" name="author[]" placeholder="Enter author\'s name" required style="margin-top: 10px;">'
);
});
});
</script>
</body>
</html>
GitHub Events
Total
- Push event: 3
- Create event: 2
Last Year
- Push event: 3
- Create event: 2
Dependencies
requirements.txt
pypi
- Flask *
- PyPDF2 *
- flask-cors *
- flask-sqlalchemy *
- graphviz *
- matplotlib *
- networkx *
- nltk *
- numpy *
- openai *
- pandas *
- pyvis *
- requests *
- seaborn *
- sklearn *
- spacy *
- torch *
- transformers *
- werkzeug *