-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Research Page Feature Updates (Aug-2020) #26
Comments
For Task 2, where do I find the description, publications, and students? Or should I create a description and try to look through the publications and students for correlations with the research areas? |
For both Task 1 & 2 there is missing information that will need to be filled in during an EPICLab group meeting. Since the next one is scheduled for tomorrow, I will add this to the agenda and update this issue with more information after that. In the meantime, you can start researching how to accomplish Task 4. |
for Task 4, is it necessary that we do a timestamp (e.g. Last updated 3 hours ago)? Can we just update the date when the file is changed (e.g. Last updated 8/11/20)? |
That is actually not a timestamp, but a duration between the timestamp of the last change and the current time. This appears complicated, but there are several date and time libraries that make this an easy problem to solve. For example, the var timestamp = DateTime.fromISO('*last_update_timestamp*');
var now = DateTime.local();
var delta = timestamp.diff(now, ['months', 'days', 'hours']).toObject();
console.log(delta); //=> { months: 16, days: 19, hours: 0.75 } This project uses Node.js as the platform, so follow the Luxon - Node installation instructions for pulling it into the project in order to use it. |
I'm a little lost on the Luxon - Node installation. Do I enter those commands into my terminal, a html file, or a javascript file? |
The installation commands for Luxon - Node are |
I've been trying to do the Javascript duration code, but now when I run my code
on Node.js through the terminal, nothing happens. There is no output or error message. |
That design for I don't believe you can run JavaScript code within the terminal, since it requires an environment to be running. If you want to see how JavaScript works in a basic page, it must be embedded into a <!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script> These lines are pulling in JavaScript code, which are stored in those |
Looks good to me. But hopefully the |
Are these photos okay for the new research cards? Do you know when the descriptions will be ready? Also, I've been trying to create the javascript duration code through html, but I keep getting an empty output. I've looked up tutorials, but Luxon seems to be uncommon. There was only one YouTube tutorial, and it didn't help very much. |
Those images are very generic, and therefore don't do a good job of conveying the type of research being conducted within each research area. We can ask the graduate student leads for each area to decide on the most appropriate image. However, in order to make sure that the images all fit well together, we need to provide each lead a set of possible images that would fit with the design. Although we discussed the descriptions in the group meeting on Wednesday, we will have to follow up with each lead to make sure those descriptions get written in a timely manner. Let me take a look at the duration problem and see if I can quickly add code to your |
The format of recent publications looks good. However, we want to have some way of indicating that those publications are clickable links. Your question brings up a larger design discussion, which I'm breaking off from this issue and adding to #27. |
First, I need to acknowledge that my recommendation to look at the If you pull the code from commit 8898798 that was added to your <script src="vendor/luxon/luxon.min.js"></script>
<script type="text/javascript" src="js/timestamp.js"></script> An instance of using of that <script type="text/javascript">
document.getElementById("usable-privacy-&-security").innerText = timeSince('2020-05-25T09:45');
document.getElementById("inclusivity-in-software-engineering").innerText = timeSince('2020-08-14T09:45');
document.getElementById("human-factors-in-development-environments").innerText = timeSince('2020-08-12T09:45');
</script> I didn't dive into figuring out how to read the actual update timestamps from each of those individual research area pages, but this commit signifies a starting point for you to explore. Note: I had a problem being able to see the JavaScript dynamic elements when loading the local |
was this done over the summer? Or should I bring this up at Wednesday's meeting? |
This was not completed, so bringing it up during Wednesday's meeting is a good idea. |
The Research page contains cards for each of the research areas actively being researched by EPICLab members. The following updates need to be made to them:
Last updated 3 mins ago
at the bottom of each card needs to be configured to dynamically update when any new content or changes are made to the page for that particular research area. This will definitely require code written in JavaScript in order to dynamically pull and display this type of information (possibly grabbing the timestamp from GitHub for each research area page?).The text was updated successfully, but these errors were encountered: