FontAwesome is great, but after upgrade to 5, there are prefix types (far, fas, fab) added and then the way to render with SVG/JS to make its mess. There are 2 types of use, but SVG/JS is way better in advance features to decorate the icons.
The problem is daterangepicker works fine on parent page, but not work on fancybox dialog. The calendar not showing, no error in console. I guess there is something not in the right place.
My keywords to searching for the answer is “bootstrap daterangepicker fancybox” and not find any related answer so I try myself to use option “parentEl” of daterangepicker which seems for something and still not work, apparently I don’t know how to use it since there is no example or much explanation.
I’m finding a solution for a day, without any of daterangepicker explanation on the document how to use the option “parentEl”. Not even mention that it is for use with modal. Would you say poor documentation?
The very short description says:
parentEl: (string) jQuery selector of the parent element that the date range picker will be added to, if not provided this will be ‘body’
So after reading the problem all over the internet, found that the modal have to use option “parentEl” but still don’t know how since there is no example. I have tried it myself several ways.
Here is my solution
add a script in the ajax file that loads inside fancyBox so it will be loaded right after the form.
The input with daterangepicker has a css class name “fancyBoxDateRangePicker” (use your own) and the class “fancybox-overlay” is the default css class in fancyBox so you don’t have to do anything with that.
Then after you use this, still one more problem that the calendar layer will be loaded under the fancybox modal so you have to add style to override.
I have to implement the color extractor from image so I have too look at the php script that can extract color in image to hex code, but then need to convert hex or rgb to human color name. So this is useful.
In case you are looking for this. It’s an array of color name matching with RGB in format
$colors = array(
"Acid Green" => array(176, 191, 26),
"Aero" => array(124, 185, 232),
If you are using jStarbox so you know what I refer to.
The visible tab is fine, but the hidden tabs seems has problem. I am not sure because of the design or the jStarbox does not have this prevention.
It appeared that .colorbar not set to the size of .positioner after visible. (.positioner still have width of 0px) here is what I do.
starbox.starbox(‘setOption’, ‘average’, averageVal); //call method to reset the average value
I am recruiting new member for IT team. 1 Position of Web Graphic Designer, 1 Position of PHP Web Developer
I really like someone to join the team. Please let me know if you are qualify.
1. Age 26 – 35 years old
2. Thai nationality
3. 2 – 3 Years Experience
4. Fair English communication
Salary is 25,000 Baht – 40,000 Baht depends on your experience.
Our office located in Silom, Bangkok. Easy to commute by BTS/MRT
The project I am talking about is an online/offline payment solutions for Australia merchant. BPAY and PostBillPay is very popular to merchant in Australia. After this patch done, I will expand the project bigger and that would effect a lot of product of our company. This is including accept credit card and all will need PCI Compliance. None of Thai Banking doing this or very few.
This time, I will need to patching the invoice generator to fix the bug on the first of August. All the tests are good and believe tomorrow test will be good. I was on this problem for about 2 months already. The first month I have to fix the logic of wrong fee calculation and that was fixed. Now is the patch for the new invoice that will display the correct amount of fee that charge to clients.
Sometimes, working on financial stuff is too scared for wrong things happen, but after fix and test for many times that could make us confident for the results. Tomorrow too, I am very confident it would pass very easy.