I have a simple site. It's one html page, and just plain text entries. The HTML is like this...
<div class='box'>
April 15, 2021
Today, I got a cat.
</div>
<div class='box'>
April 16, 2021
Today, I named the cat toby and fed him fish.
</div>
Is there a way to prove through some type of hash, that the entries have been unaltered? Like a way to prove that I never went back and changed one of the entries?
Related
I’m trying to implement the AjaxControlToolkit (19.1.0) CalendarExtension control in a Webforms project. VS 2017.
I have the toolkit referenced in a Master page, along with scriptmanager.
My content page has scriptmanagerproxy reference.
The resultant display shows the current month on the top line,
vertical column of day abbreviations on the left side, no day numbers for the month, and the current date on the bottom. So a square box with the Month at the top line, the current date 'Today:' on the bottom, and the left side with the day name abbreviation. Empty box otherwise.
(I can't seem to get this formatted properly in this post textbox to post what it looks like)
| < October, 2019 > |
|Su | |Mo | |Tu | |We | |Th | |Fr | |Sa | | 29 | | Today: October 23, 2019 |
We are in the US, do not have any cultural settings set. On another page (not using a master page) it is looking ok (like a regular calendar).
Is there a known issue with using this on a content page? Is there some setting, obscure or otherwise, that I am overlooking ?
I've looked over a bunch of online articles on the control, but nothing mentioning anything like this.
My aspx code implementing it:
…
<tr>
<td>
<asp:Label ID="Label6" runat="server" Text="Start Date"></asp:Label>
<asp:TextBox ID="txtbxStartDate" runat="server" />
<ajaxToolkit:CalendarExtender ID="CalendarExtender1" TargetControlID="txtbxStartDate" runat="server" />
</td>
</tr>
…
Solution:
With the help of my designer, we figured out the issue was with the css stylesheet of the Master page overriding the 'td' and other css classes, and each element was therefore given a width: 100% value.
By adding the following Style code into the webpage we resolved the issue.
.ajax__calendar_container td {
width: auto;
}
Immediately after my {block:Posts} I have placed a date that will display the post date on top of every post I make. But I realized this piece of code is also rendered on my Pages as well and thus produces unwanted commas and <br/>s. How can I let Tumblr know that I only want these dates to appear on my main blog page and not in any other pages?
Update:
{block:Text}
<strong>{DayOfWeek}, {DayOfMonth} {Month} {Year}</strong>
<br/><br/>
<div class="text post">
{block:Title}
<h2><div class="textposttitles">{Title}</div></h2>
{/block:Title}
{Body}
{block:IndexPage}
<div class="permalink">
<p class="date">
{NoteCountWithLabel}</p>
</div>
{/block:IndexPage}
</div>
{/block:Text}
Date Block and Variables
Currently the OP is using just the date variables, without the block. The block checks to see if the post has a date, and then render its.
As pages don't have a date, the block check fails and the date isn't rendered.
{block:Posts}
{block:Date}
<strong>{DayOfWeek}, {DayOfMonth} {Month} {Year}</strong>
{/block:Date}
{/block:Posts}
On a sidenote, the {block:Date} is a handy way to render markup (shares, comments, etc) specific to posts only.
Reference
Date Operators https://www.tumblr.com/docs/en/custom_themes#dates
I have a form that is using the calendar/date selection tool within Ektron, but when users select the current date (or any date, for that matter), it gives an error saying that you need to select a date in the past.
We haven't tooled around in the code for this form, but it almost sounds like a validation issue.
Here's the code, as is, from Ektron.
<p align="center" style="text-align: left;">Date program was presented:
<ektdesignns_calendar title="Date presented" id="Date_presented" onblur="design_validate_xpath('number(translate(.,\'-\',\'\')) <= number(translate($currentDate,\'-\',\'\'))',this,'Date in the past (required)');" ektdesignns_name="Date_presented" ektdesignns_caption="Date presented" ektdesignns_invalidmsg="Date in the past (required)" ektdesignns_validate="xpath:number(translate(.,'-','')) <= number(translate($currentDate,'-',''))" ektdesignns_basetype="calendar" ektdesignns_datatype="date" ektdesignns_validation="datePast-req" name="Date_presented">
<input type="text" size="30" readonly="readonly" unselectable="on" />
<img width="16" height="16" class="design_fieldbutton" alt="Select date" src="[skinpath]btncalendar.gif" unselectable="on" /></ektdesignns_calendar></p>
My knowledge on validation is limited, but it looks like it's parsing the date as an integer. Is it possible to add a day (+1) to the current date so that it interprets any day as valid as long as it's not in the future?
I guess this is a HTML form as opposed to a Smart form?
If so, have you checked the validation settings on the calendar field? If you edit the form, right-click on the field and choose Field Properties you will get the properties window. Go to the Validation tab and check the setting in the Validation drop down.
There are options for ensuring the date is in the past or the future. Perhaps one of these options has been set?
I'm using Watir WebDriver with Firefox.
Here are two asserts for the same element. The first works, but not the second:
assert_match(/Please add user to GMT/, #browser.small(:class, "error").text)
assert_match(/Please add user to GMT/, #browser.div(:class, "eight mobile-three columns").small(:class, "error").text)
I need the second assert to work, because there are 8 error messages on the page, which are presented if the user does not populate 8 mandatory fields. All 8 errors have the identical HTML. So, I need to be able to step down from the parent.
Here is the HTML:
<div class="eight mobile-three columns">
<a id="btnAddUserToGMT" class="success radius button expand error" onclick="AddUserToGMT();" data-reveal-id="addToGMT" href="#"> … </a>
<small class="error" style="margin-top:0px;">
Please add user to GMT
</small>
</div>
Here is the error message:
Watir::Exception::UnknownObjectException: unable to locate element, using {:class=>"error", :tag_name=>"small"}
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.4/lib/watir-webdriver/elements/element.rb:490:in `assert_exists'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.6.4/lib/watir-webdriver/elements/element.rb:85:in `text'
C:/Documents and Settings/Asserts_01.rb:22:in `testBasic'
The complaint for the second assert is:
unable to locate element, using {:class=>"error", :tag_name=>"small"}
And yet that same using was OK for the first assert.
Problem solved.
After discussion with the developer, it appears that by some unusual manipulation of automatically generated HTML, the text of the error message appears at its correct location on the page. But the assertion must be based on a different tag, which is specified at some completely different position on the page.
For example, I was trying to assert on this code at the correct position:
<small class="error" style="margin-top:0px;">
Gender is required
</small
Even unique xPath generated by FirePath failed to find this.
What I should have asserted on was a HIDDEN tag on a completely different part of the page.
<input id="errorMsgGenderID" name="errorMsgGenderID" type="hidden" value="Gender is required" />
There were several such tags for each mandatory field that was not populated, all bunched together on the same line. They were all "input" tags, which puzzled me.
I'm trying to use internal references to link an index atop my wiki page with several sections within the document. Here's an example:
* `My index`_
+ Foreword_
+ `Technical details`_
My index
--------
Foreword
~~~~~~~~
Technical details
~~~~~~~~~~~~~~~~~
If I generate the HTML page via rest2html I get the right result. However, GitHub wiki inserts extra words in the references and the links do not work. for example:
https://github.com/myaccount/myproject/wiki/Page#wiki-my-index
https://github.com/myaccount/myproject/wiki/Page#wiki-foreword
https://github.com/myaccount/myproject/wiki/Page#wiki-technical-details
I couldn't find any relevant document in the GitHub page, so I'm kind of lost.
It looks like the class ids are missing from the generated divs. Check the page source to (not) see them. I think this is what it should look like:
<ul>
<li><dl class="first docutils">
<dt><a class="reference internal" href="#my-index">My index</a></dt>
<li><a class="reference internal" href="#foreword">Foreword</a></li>
<li><a class="reference internal" href="#technical-details">Technical details</a></li>
</ul>
<div class="section" id="my-index">
<h1>My index</h1>
</div>
<div class="section" id="foreword">
<h2>Foreword</h2>
</div>
<div class="section" id="technical-details">
<h2>Technical details</h2>
</div>
Edit: User intuited mentions the same issue in a GitHub markup issue
I've noticed this problem with README.rst files as well. As well as
headings, inline targets in .rst files, e.g. _some target, don't
work. The inline target text gets wrapped in a but doesn't get
made into any sort of link target. Should I file this as a separate
issue?