Column not visible in Safari - UiKit v.2 - html

Can you help me solve this problem? One column is not visible in Safari. I tried change display of .uk-grid class to everything, change order of CSS attributes and it didn't help.
Here is the page: http://pegasproperty.impnet.cz/
Here is image with mentioned issue (big red box should be visible):

You are mazafakin pohadkovy raper.
If not in the office is a habit, trust me,
in the streets I have the prestige, I go out with the truth out,
like pregnancy tests, you do not know anything about the street,
as a book with Majka Spirita and rappers from the villages,
I'll eat these shit like Nesquik,
do not rush before you grab over the lip,
I'll pull you out of the two-sixth of your brush
and you go home in the rain, these lyrics, tracks,
boards are not bullshit, I'm a problem I do not want to solve,

Related

IMPORTXML in Google Sheets cannot seem to dive multiple spans

I have a fun spreadsheet for playing with PowerBall (potential) winnings. I discovered that I could use IMPORTXML to auto-fill the cash value of the current jackpot. But something changed and I am trying to fix it, but there's a problem:
=IMPORTXML(A4,A?) where A4= https://www.powerball.com/powerball-prize-estimate and A? = the XPATH.
The problem is that the XPATH comes to this: //*[#id="block-winningnumbersmodule"]/div[2]/div[2]/span[3]
The Full XPATH is: /html/body/div[2]/div/header/div[2]/div/div[2]/div[2]/span[3]
The relevant div[2] looks like this from the page:
<div class="estimated-jackpot">
<span class="estimated">Estimated Jackpot</span>
<span class="number"></span>
<span class="cash-value" data-value="Cash Value:"></span>
</div>
The second span is empty and I can't access the third span.
I solved this issue for myself in that the same info turned out to be elsewhere in the page. The old XMLPATH changed very little:
From:
/html/body/div[2]/div/main/div/div[1]/article/div/div[3]
To:
/html/body/div[2]/div/main/div/div[2]/article/div/div[3]
I switched to the, presumably, less likely to change randomly:
//div[#class="field_prize_amount_cash"]
Which lands me the same place.
But I continue with the question because I think it's still valid...why can't I get past the first span?
These are the XPATHs that I tried and the results for each:
//*[#id="block-winningnumbersmodule"]/div[2]/div[2]/span[3] #N/A XPATH
/html/body/div[2]/div/header/div[2]/div/div[2]/div[2]/span[3] #N/A Full XPATH
//*[#id="block-winningnumbersmodule"]/div[2]/div[2]/span Estimated Jackpot
/html/body/div[2]/div/header/div[2]/div/div[2]/div[2]/span Estimated Jackpot
//div[#class="estimated-jackpot"] Estimated Jackpot
//span[#class="estimated"] Estimated Jackpot
//span[#class="number"] #N/A This is an empty span
//span[#class="cash-value"] #N/A This is what I am wanting
//*[#id="block-winningnumbersmodule"]/div[2]/div[2]/span[1] Estimated Jackpot For completeness' sake
//*[#id="block-winningnumbersmodule"]/div[2]/div[2]/span[2] #N/A Maybe it doesn't count the empty span? Poop!
So, help? That I don't need anymore except to scratch an itch :)
Well I figured it out! "The relevant div[2] looks like this from the page:" showed empty spans! Looking at the elements they were all filled in...they never made it to the page source! The part I found later in the page was in the elements AND the source. "There's your problem, right there!"
<div class="field_next_draw_date">
<time datetime="2021-05-16T02:59:59Z">2021-05-16T02:59:59+0000</time>
</div>
<div class="field_prize_amount">
$183 Million
</div>
<div class="field_prize_amount_cash">
$127.4 Million
</div>
Look! Numbers! Not nothing! So when I was getting #N/A it was because I was trying to read nothing. IMPORTXML is cool, and it will read nothing as nothing every time!
Now I leave this here as...a cautionary tale? ...a reminder? (of what?)
I know... A funny story about how the asking of a question, if done thoroughly, giving all information to help those answering with every conceivable piece of information so that they are able to answer, can wind up leading you to your own answer.
I guess.
Thanks for your help! :)

Inform7 Can't Re-enter Containers

I'm currently having a small problem with getting containers to work properly in inform7. I've created a bed, which is marked as an enterable container. When the scene begins, the player is started out in the bed, and that appears to work ok. You can leave the container just fine. BUT, you can't re-enter the container. If I try to enter/get in/go inside the bed I get a message saying "you can't go that way" and I don't understand why. I'm quite new so there's probably something super simple that I'm missing here. Any ideas? Thanks so much!
Here's my code:
A Warm Cabin is a room. "A one room cabin with a fireplace on the south wall. There's a single window, frosted over from the cold."
Coming to is a scene. Coming to begins when Unconscious ends.
When coming to begins:
move the player to the double bed;
try waking up;
continue the action.
The Double Bed is a container. The double bed is in a warm cabin. The double bed is enterable and fixed in place. The description of the double bed is "A double bed strewn with soft, botanically-embroidered quilts and over-fluffed pillows. . . It's quite cozy."
Instead of entering the double bed: try going inside.

RoR - Chartkick.js and Ratyrate (styling issues)

With some coding and getting the ratyrate to work into chartkick.js - there are very minimal tutorials regarding styling changes.
The data is working into the bar graph as shown below;
HTML Setup for display:
<div class="col-md-4">
<%= bar_chart Review.group(:rating).count(:rating), colors: ["blue"], discrete: true %>
<p>Sum of each Review</p>
<%=#review_total_each%>
<p><%=#review_count%> Total Review count</p>
</div>
Main objective is to get it to look like this;
have different colours per each rating number
reverse order with 5 being at the top
remove the bottom legend (only keep the left)
remove the lines between the bars
done need to worry about the average etc, only focussing on the colour changes to the bars
I have read some tutorials although each review needs to become a unique data set and then you can complete colours.
(Chartkick column charts multiple colors)
But still having no success.
Any help or guidance will be appreciated.
(I can always update the question with requests)

Horizontal Schedule Bar for Website

I am working on a personal website and so far, everything has been going pretty well. I got the pages set up with the basic layout and everything like that. Now I am trying to make it look more professional. I bowl in tournaments multiple weekends a month. (Yes, I said bowl and yes I do consider it a sport) What I would like to do is put a schedule type bar across the top. (example can be found by clicking the link in this post) The problem is I cannot find any tutorials on how to do this because I don't really know what this functionality is called. Everything that I have tried searching for has just brought up horizontal navigation/scroll bars. Can anyone point me to a tutorial or give me a starting point for getting something like this working on my website?
That is actually a slider, showing like 15 slides at a time.
BX SLIDER - jQuery Slider
The slider included above has many options that let you customize how it works, such as
maxSlides - the total number of slides shown at a given time ( you'd set to 15 )
moveSlides - the number of slides to move on change ( you'd set to 1 ).
Example JS
$('.schedule').bxSlider({
maxSlides: 15,
minSlides: 15,
moveSlides: 1,
autoStart: false
});
Your HTML, with the schedule and all, as styled as you would like, is contained in a list.
<ul class="schedule">
<li>January 15th - Match</li>
<li>January 22nd - Match</li>
<li>January 23rd - Match</li>
</ul>
etc etc etc.

Trouble with Xpath in Google Spreadsheets (ImportXML)

This is a great site, and I've already had a lot of questions answered simply by scrolling and searching through other postings. Unfortunately, I can't seem to track down an answer that specifically helps this problem, and figured I would try posting and looking for help-
I'm using ImportXML and google spreadsheets to 'scrape'a few product descriptions from a retail site. It's been working fine for the most part, and I have done it in 2 ways:
1) Specific call to the description part of a post:
=ImportXML(A1,"//div[#class='desc']")
2) Call to the entire 'product Card', which also returns info such as product title, price, time posted, and places these items in adjacent cells in my Google spreadsheet:
=ImportXML(A1,"//div[#class='productCard']")
Both have worked fine, but I've ran into a different problem using each method. If I can resolve even one of these problems, then I'll happily scrap the other method, I just need one of them to work. The problems are:
Method 1) The website prohibits sellers from including contact information in product postings-- when they include an email address anyways, the site automatically blocks it, so that in the posting it simply appears as "...you can reach me at [obscured]" or something like that. The [obscured] appears in a different colour text and is obviously treated differently somehow. When I scrape these descriptions using Method 1, ImportXML appears to get 'bumped' when it hits the word [obscured], and it passed the remaining text from that product description to the next cell over in my spreadsheet. This ruins the entire organization of the sheet, and I'd like to find a way where I can get ImportXML to just ignore the [obscured], and still place the entire text of the product description in one cell.
Method 2) My call for the entire 'product Card' is as follows:
=ImportXML(A1,"//div[#class='productCard']")
As mentioned, this works fine (for most products), and I don't mind the additional info (price, date, etc.) being posted in adjacent cells.
However, the website also allows certain products to be 'featured', where they appear in a different colour box on the site, and are therefore more likely to get a buyer's attention.
Using this method, the 'featured' products are not scraped or imported into my spreadsheet, but are simply passed over.
The source code (on actual site) (via 'inspect element' in Safari) for both the description (Method 1) and product card (Method 2) look as follows (for a normal product (a) and a featured product (b)):
(a)
<div id="productSearchResults">
<div class="productCard tracked">
<div>...</div>
<div class="stats">...</div>
<div class="desc collapsed descFull">...</div>
</div>
(b)
<div id="productSearchResults">
<div class="productCard featured tracked">
<div>...</div>
<div class="stats">...</div>
<div class="desc collapsed descFull">...</div>
</div>
You can see in both (a) an (b) the 'desc' class that I call in Method 1, which seems to work fine.
From my reading on this site, I think I've learned that a given class can't have more than one word, and therefore the use of "desc collapsed descFull" and "productCard tracked" and "productCard featured tracked" don't represent classes with 3, 2 and 3 words in the title, but instead cases where multiple classes have been assigned?
Regardless, the call to 'desc' (Method 1) works fine and seems to get all descriptions.
In method 2 therefore, I would have thought that a call to 'productCard' would get the info for all products, both featured and regular, as 'featured' is an extra class assigned to some 'productCard's. If I call all 'productCard's, shouldn't the normal AND featured ones be returned? This is currently not the case. I've tried calling just 'tracked' and just 'featured' as classes, and neither returns anything, so my logic that they are their own class equivalent to 'productCard' may be flawed.
In summary, the 'desc' call in Method 1 works fine, and even gets descriptions for 'featured' products. However, when contact information is included in the description and is displayed as [obscured] it bumps my data into the next cell in the spreadsheet, immediately following the word. This throws off and ruins all organization.
In Method 2, I am not getting the featured products at all, which greatly weakens what I am trying to do. Can either (or both!) of these problems be fixed??
Thanks so so much for any help you can give me.
***UPDATE: As seen in the comments below, use of the 'contain' as suggested improved Method 2 by retrieving both regular and featured products. However, featured product cards have extra text elements, and since the entire card is being scraped in this method, featured products do not match the cell alignment that regular products do. If there is a way to fix Method 1, this would therefore be much better.
As outlined in the comments below, the [obscured] text appears in a 'span' that follows underneath/indented from the
<div class="desc descFull collapsed"
as
<span class="obscureText">[obscured]</span>
Is there any way that I can import the 'desc's as I have been, but tell the XPath to essentially 'ignore' the [obscured] span, or at least deal with it in a way that doesn't make description text immediately after [obscured] appear one cell over?
Thanks so much everyone!
You can wrap your function with the concatenate()-function to make sure it all shows up in one cell:
=concatenate(ImportXML(A1,"//div[#class='productCard']"))