Tailwind CSS renders locally but not on GitHub pages - github-pages

I've got TailwindCSS working locally but it's not working on GitHub pages. I'm very new to all of this so I'm unsure where to even look.

There is only one style in your head area in your DOM.
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
But this is not the style you have built locally. This means you have to add the generated style from your local environment into your HTML head area.
I thing that is your style file what you need: https://github.com/syueyan/syueyan.github.io/blob/main/dist/assets/index.eb05b1e4.css

Related

PrestaShop - Shopping cart icon not showing

I have this problem in PrestaShop, I do not know what I did but now the image of my shopping cart does not work. It is written: F291 and I have no idea why. How can I change it?
I did not touch any code, just working in PrestaShop admin version.
F291 is a shortcode used with FontAwesome to display a shopping basket icon.
FontAwesome is a custom font that has symbols/icons that replace normal text characters, it is used in many templates, including PrestaShop templates.
You can double-check it here:
https://fontawesome.com/icons/shopping-basket?style=solid
Assuming you did not make any modifications to your template, the most probable cause is that the URL used to link the FontAwesome CSS file no longer works.
Steps to resolve this issue:
Search for fontawesome across all the files in your /themes/themename/ PrestaShop folder
Once you have found the file/line calling the FontAwesome CSS file, replace it with:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" integrity="sha384-oS3vJWv+0UjzBfQzYUhtDYW+Pj2yciDJxpsK1OYPAYjqT085Qq/1cq5FLXAZQ7Ay" crossorigin="anonymous">
I hope this helps.

EasyUI and Foundation conflict

I am using both products and cannot get rid of a conflict between these. I was told on the Foundation forum that it is because of some css classes being named the same. Has anyone experienced the same problem and figured out a fix? You can see it here:
http://jsfiddle.net/x270Lh7c/
if you add:
<link rel='stylesheet' href='http://cdn.foundation5.zurb.com/foundation.css'>
Thanks
If you use Foundation Sass you can choose only the pieces of the Foundation CSS that you want to use in your project. I would suggest doing this and not importing the Foundation tables styling.

How can I share working Famo.us code snippets with others on SO?

AFAIK, no sites like jsfiddle or codepen currently support Famo.us. Are there other methods for sharing working code examples of Famo.us that are permanent enough to warrant using on Stack Overflow?
Starting on May 16th, Famo.us will begin testing a minified CDN version of famous.js that can be used in much the same way as one would use the minified CDN for JQuery and JQuery plugins. Once the CDN is in place, developers can fiddle with famo.us core, famo.us discrete examples, famo.us widgets and famo.us templates within famo.us university, jsfiddle and codepen.
In addition, we will also be testing a new BUILD MIN service to super minify your code. Send a .zip file to the BUILD MIN service of famo.us and get back a custom min'd and CDN'd famous.js that only uses the components needed for our app.
hope this helps.
I compiled famo.us so that it can be used in a jsfiddle.
Here is the jsfiddle http://jsfiddle.net/jperl/7wEWU.
Here is the compiled repo https://github.com/jperl/famous-compiled.
http://jsfiddle.net/7beq5/2
<html>
<script src='http://code.famo.us/lib/require.js'></script>
<script src='http://code.famo.us/famous/0.2/famous.min.js'></script>
<script> // (this could be another file)
require(['famous/core/Engine',
'famous/core/Surface',
'famous/core/Modifier'
], function(Engine, Surface, Modifier){
// --------------- use famo.us here ------------------ //
});
</script>
<html>
** EDIT **
Check out jonperls answer. He has compiled a working version of famo.us for use in JSFiddle. Simply use the External Links feature of JSFiddle to link to the compiled source.
** ORIGINAL **
I have not heard of any way to share snippets in line with working examples.. But you could always just host the code here.. then link to the working example.
The quickest and easiest way I found to share Famo.us demos has been to host the examples on amazon's S3 as a static webpage.
It is super easy to create a bucket and enable it to act as a static hosted site.
Worrying about DNS is optional. When you enable a bucket as a static host you get an endpoint. eg.
http://higherorderhuman.com.s3-website-us-east-1.amazonaws.com
It is up to you if you want to deal with setting up DNS and making that point to a more attractive URL. For me, both..
http://higherorderhuman.com.s3-website-us-east-1.amazonaws.com/examples/lens.html
and
http://higherorderhuman.com/examples/lens.html
Go to the same place.
By using folders on s3 and creating separate html files, I am able to host all examples from this single endpoind. eg. another example at..
http://higherorderhuman.com/examples/scrollbars.html
Just make sure all files that get uploaded are made public with.. 'Make Public'
Still looking forward for JSFiddle support.. But at least this does it for me for now!
The codefamo.us site launched today (May 19). It displays famo.us code stored as a GitHub Gist if saved with the name main.js.
To view the working example of the code, simply tack the gist identifier onto the end of the "gist.codefamo.us" uri:
For example:
http://gist.codefamo.us/74ca030bafdca1635e47
The code displays in a collapsible panel and runs in a preview panel. You can make changes to the code and see them reflected in the preview, similar to Famo.us University.
Disclosure: I'm one of the two people behind this site.
Use http://famousco.de/ and then post the link here!
p.s. i am the webmaster of famousco.de :)

Jquery inside of CFDiv

I have a page that includes a CFDiv tag that displays content from another file.
<cfajaximport tags="cfwindow,cfform,cflayout-tab,cfdiv">
<cfoutput><cfdiv class="vehicle-log" bind="url:trip_tab.cfm?ticketid=#ticketnum#" ID="theDiv" bindOnLoad = "true"/></cfoutput>
The external file has jquery tabs and jquery datepicker. None of the jquery seems to work in the CFDiv. If I call the external page by itself, everything works fine.
The reason I'm using a CFDiv here (I know most people hate cf layout stuff) is because the external page has a form element that I can submit and add to data to the db without refreshing the whole parent page. This is the only way I know how to do this.
Anyways, does anyone know how to get my jquery elements to work in a CFDiv?
Thanks.
Brian
You've got more than one problem here. First, you are using <CFDiv>, which under the covers is using portions of a very old version of ExtJS. So you are likely going to run into some headaches with mixing ExtJS and jQuery (and jQuery plugins).
Second, since <CFDiv bind="..."> uses AJAX to load the external HTML window content, you would need to change your JavaScript strategy. <CFDiv> will not pull in and execute the JavaScript code (including jQuery) from the external page (trip_tab.cfm), unless you only use CF UI widgets inside that external page (then the <cfajaximport> tag handles that for you). It only loads the HTML DOM content. You will have to move any <script> and <link rel="stylesheet"> tags and custom JavaScript/jQuery code and CSS into the parent page (the page that has the <CFDiv> tag in it). Then you'll have to find a way to listen for the AJAX event (completion of loading the external page) and call the custom JavaScript/jQuery code.
As others suggested in the comments above, using <CFDiv> is only making things harder for you. If you switched to using one JavaScript library for your UI components (like jQuery/jQueryUI/jQuery plugins), and put all of the necessary code into your main page, what you desire can be accomplished fairly easily.
I found a simple work around... CFdiv creates what feels like a seperate browser window, but its not actually one. So it can't pull Javascript files in via:
<script type="text/javascript" src="/js/scripts/jquery-1.11.1.min.js"></script>
The above is telling the browser "go fetch this file" - but since your CFdiv is not really a browser (Its a controversial permutation of CFajax as described here) it doesn't do it.
Technically, the above makes the browser include it into the page, just as if you cfincluded it , or just pasted the Javascript in there.
So convert the above to:
<script type="text/javascript"><cfinclude template="/js/scripts/jquery-1.11.1.min.js"></script>
And included javascript will work! (provided there aren't any conflicts with cfajax et al)
I had a similar problem in that my jquery was not working, and doing this fixed it.

Firebug lite not working in IE/Chrome

I am trying to install firebug lite onto IE and Chrome. The documentation states to simply add the javascript location in the document and all should be well. This works but the iframe containing then firebug is hidden with a visibility: hidden attribute. I am unable to find anywhere to actually activate the firebug, normally you would think you could right click and "inspect" but that option is not there. The chrome extension and bookmarklet works but my main concern is trying to firebug through internet explorer.
Anyone had or solved this issue?
Yeah I had the same problem using the stable channel. I switched to the debug channel & it worked perfectly, opening right up. So use this:
<script type="text/javascript" src="https://getfirebug.com/firebug-lite-debug.js"></script>
Also, I find it useful to throw a quick 300px-high div in there at the bottom of my page to make room for Firebug Lite, like this:
<div style="display:block; height:300px; background:blue;"></div>
Just don't forget to remove it with the FBL script tag!