Guest User

Untitled

a guest
Dec 12th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <script type="text/javascript">
  2. (function($) {
  3. $(document).ready(function() {
  4. $('.et_pb_filterable_portfolio .et_pb_portfolio_item').each(function() {
  5. var title = $(this).find('h2');
  6. p = $(this).find('p');
  7. $(title).appendTo($(this).find('.et_portfolio_image .et_overlay'));
  8. $(p).appendTo($(this).find('.et_portfolio_image .et_overlay'));
  9. });
  10. });
  11. })(jQuery);
  12. </script>
  13.  
  14. function myFunction(x) {
  15. if (x.matches) {
  16. }
  17. }
  18.  
  19. var x = window.matchMedia("(max-width: 700px)")
  20. myFunction(x) // Call listener function at run time
  21. x.addListener(myFunction) // Attach listener function on state changes
Add Comment
Please, Sign In to add comment